GNU bug report logs - #31660
26.1.50; EIEIO manual's Quick Start example makes Emacs unusable

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Gemini Lasswell <gazally@HIDDEN>; Keywords: confirmed; merged with #32595; dated Wed, 30 May 2018 19:02:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 31660 32595. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 31660 <at> debbugs.gnu.org:


Received: (at 31660) by debbugs.gnu.org; 3 Jun 2018 00:23:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 02 20:23:39 2018
Received: from localhost ([127.0.0.1]:59672 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fPGo7-0002H8-Gx
	for submit <at> debbugs.gnu.org; Sat, 02 Jun 2018 20:23:39 -0400
Received: from mail-io0-f195.google.com ([209.85.223.195]:33163)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fPGo6-0002Gu-Lt
 for 31660 <at> debbugs.gnu.org; Sat, 02 Jun 2018 20:23:39 -0400
Received: by mail-io0-f195.google.com with SMTP id d185-v6so5979097ioe.0
 for <31660 <at> debbugs.gnu.org>; Sat, 02 Jun 2018 17:23:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=7vKxbQrX1u0xyyqKif0NPB04fq/rzRW0e9VJKZKIQeA=;
 b=cCO1oP4SUD4fLzj21TGbourZOaXqIbnvU7q/dNwyLjycdMnBGUNUVgNfepJB7rRHH4
 3DVXNRJvxiQeGuBoOAbZrlSbWzcUgUL/DQ7eUo1a2N3obZP5ATg9Gn06n0CmWrnTnecd
 FcLriBmmrVmBRPy11t8CVMaR+Z2f6h26l+Ov+0CRkoA3QF6vagzuUq7sLPR484vZ5wjt
 UaA/2yItxbcyfTpIXO1/RjXPXH1W551DgB9M/JwFhyhdxC3JgB9YGxa6wkvf4lJN2ubs
 7e1rP/esQu35pI75RZaB/k5hwt8uiCiZmaV3dy2YKBWMaDObJLI3sDAZxQ6B+7XSF5yV
 oYLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=7vKxbQrX1u0xyyqKif0NPB04fq/rzRW0e9VJKZKIQeA=;
 b=Sa2cNl2S6IfVd4sndtLZGFv2U2KkMqRfS9pFRoPBQ7mYv5ywz5rSxjNY4FIEJ1Ou2C
 vqSSJahoBxKUFlJzZWG8DxG6hqS974MYgpJZWXP/FDvhSBIoZxqwJrmUiaj7h5oNUQv4
 wJ5m8jfMQZLw0FWmtu/NBoJZ1pnddAkaDCr9bqZ6FpWtNU8gY95vmybm/kKfvSyDj8g9
 yvPwJIhZkL2G+nhAjaMkMGltUV31o2XFnCK4EIQ8cE/e6JhMifwSqMUhfZfDTRVRcJgk
 V90pu198ndrxTMiygt02d/LicXo/mJSOLqwssPbq6kjJKfwkj3Fs+FuwvzjAQZ74BgLI
 202A==
X-Gm-Message-State: APt69E1H3D4galJunIS+gD72AdEL3vBnl8Yex2gFWNzqCAht8uW5p+S9
 l90yOhEvRsRN1+i0zu3vMXuPNw==
X-Google-Smtp-Source: ADUXVKKUAZE1rgQMrzxDU9VDMalA9vJkDTyfJrs3IJd4lQIGyJRsA6m1fTCPYALnyLHFYKGBTBqYRg==
X-Received: by 2002:a5e:8c15:: with SMTP id
 n21-v6mr11427221ioj.217.1527985413200; 
 Sat, 02 Jun 2018 17:23:33 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 r137-v6sm2869368ita.8.2018.06.02.17.23.32
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 02 Jun 2018 17:23:32 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Gemini Lasswell <gazally@HIDDEN>
Subject: Re: bug#31660: 26.1.50;
 EIEIO manual's Quick Start example makes Emacs unusable
References: <87wovl3r4u.fsf@HIDDEN>
Date: Sat, 02 Jun 2018 20:23:31 -0400
In-Reply-To: <87wovl3r4u.fsf@HIDDEN> (Gemini Lasswell's message of "Wed,
 30 May 2018 12:00:49 -0700")
Message-ID: <878t7wafb0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 31660
Cc: 31660 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

Gemini Lasswell <gazally@HIDDEN> writes:

> Definitely the name of the class in the examples in the manual should be
> changed, so that the examples work.

Yeah.

> Maybe it would also be a good idea for defclass to signal an error or
> at least give a warning message if it is asked to define a class with
> the same name as an existing function unless that function is from a
> previous class definition.

A warning would be okay I think.  An error is too much: if you were
developing a library and decided to change a function into a class, then
you wouldn't be able to reload the new version without restarting Emacs.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31660; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 May 2018 19:01:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 30 15:01:49 2018
Received: from localhost ([127.0.0.1]:55412 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fO6M1-0002H9-4W
	for submit <at> debbugs.gnu.org; Wed, 30 May 2018 15:01:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55882)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gazally@HIDDEN>) id 1fO6Lz-0002Gw-KL
 for submit <at> debbugs.gnu.org; Wed, 30 May 2018 15:01:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1fO6Lt-0006dp-K5
 for submit <at> debbugs.gnu.org; Wed, 30 May 2018 15:01:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49381)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <gazally@HIDDEN>) id 1fO6Lt-0006da-HU
 for submit <at> debbugs.gnu.org; Wed, 30 May 2018 15:01:41 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46828)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1fO6Ls-0006uO-C7
 for bug-gnu-emacs@HIDDEN; Wed, 30 May 2018 15:01:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gazally@HIDDEN>) id 1fO6Ln-0006ZH-Dj
 for bug-gnu-emacs@HIDDEN; Wed, 30 May 2018 15:01:40 -0400
Received: from aibo.runbox.com ([91.220.196.211]:44440)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <gazally@HIDDEN>) id 1fO6Ln-0006Yi-3Y
 for bug-gnu-emacs@HIDDEN; Wed, 30 May 2018 15:01:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=rbselector1;
 h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; 
 bh=XWYNPNRaK+Q8lln6iqygrz6bR1FQkxz0EGo+uNUZLhQ=; b=eFmBAYnxcoMH4OQpHngLb2/Un
 yFsl2Qo8ftVIKbGNXCIrJYZPZ7Qtj0jMWu55MYYxwC0VH1qodhnzLKyYQTv5bWJTOcQduxBRsRDAP
 bOGBdD8iGcykcmVRD3K+j67q70cuI3u4MPoyWl6tvqJmhr7o+DA04WFj6YQk3kLs3qhV8/CCOD4ge
 OAI0sBBilvzl4aGhOsTxHfps+ZqoKY/wFHkbdRdlfYTkvMD4Mz9N3KHs0dP7vSQOmK9YyA+/749gO
 0xyxnKBS9g3ngXodKOQWDuKcjif6IhwW0bLvpCF41ycoSufjXLMjxSes2I3xQoKtukBYrn9p1t0ao
 fnebCtnuw==;
Received: from [10.9.9.212] (helo=mailfront12.runbox.com)
 by mailtransmit03.runbox with esmtp (Exim 4.86_2)
 (envelope-from <gazally@HIDDEN>) id 1fO6Ll-0002GR-54
 for bug-gnu-emacs@HIDDEN; Wed, 30 May 2018 21:01:33 +0200
Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161]
 helo=sockeye) by mailfront12.runbox.com with esmtpsa (uid:179284 )
 (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1fO6LG-0000U6-0j
 for bug-gnu-emacs@HIDDEN; Wed, 30 May 2018 21:01:03 +0200
From: Gemini Lasswell <gazally@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.1.50; EIEIO manual's Quick Start example makes Emacs unusable
Date: Wed, 30 May 2018 12:00:49 -0700
Message-ID: <87wovl3r4u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)

The first example in the EIEIO manual defines a class called 'record'.
Evaluating this example changes the function definition of 'record',
which makes many Emacs commands produce errors, including find-file,
ielm, and report-emacs-bug.

To reproduce, with emacs -Q:

M-x info RET
Navigate to the Quick Start node in the EIEIO manual, and select
the (defclass record ...) example.
M-w
M-x ielm RET
(require 'eieio) RET
C-y RET

Result: *** IELM Error ***  Error during pretty-printing (bug in pp)

Definitely the name of the class in the examples in the manual should be
changed, so that the examples work.

Maybe it would also be a good idea for defclass to signal an error or
at least give a warning message if it is asked to define a class with
the same name as an existing function unless that function is from a
previous class definition.




Acknowledgement sent to Gemini Lasswell <gazally@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#31660; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 30 Aug 2018 20:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.