all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31660: 26.1.50; EIEIO manual's Quick Start example makes Emacs unusable
@ 2018-05-30 19:00 Gemini Lasswell
  2018-06-03  0:23 ` Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: Gemini Lasswell @ 2018-05-30 19:00 UTC (permalink / raw)
  To: 31660

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-09 23:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-30 19:00 bug#31660: 26.1.50; EIEIO manual's Quick Start example makes Emacs unusable Gemini Lasswell
2018-06-03  0:23 ` Noam Postavsky
2018-11-22 22:01   ` Gemini Lasswell
2019-04-09 23:10     ` Noam Postavsky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.