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

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Wed, 30 May 2018 19:02:01 UTC

Severity: minor

Tags: confirmed, fixed

Merged with 32595

Found in version 26.1.50

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gemini Lasswell <gazally <at> runbox.com>
To: 31660 <at> debbugs.gnu.org
Subject: bug#31660: 26.1.50; EIEIO manual's Quick Start example makes Emacs unusable
Date: Wed, 30 May 2018 12:00:49 -0700
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.




This bug report was last modified 6 years and 127 days ago.

Previous Next


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