GNU bug report logs -
#38365
26.3; The info doc of eieio-class-name is outdated and its value looks incorrect
Previous Next
Reported by: Xu Chunyang <xuchunyang56 <at> gmail.com>
Date: Mon, 25 Nov 2019 21:33:37 UTC
Severity: minor
Tags: fixed
Merged with 38374
Found in version 26.3
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
(info "(eieio) Predicates") mentions
-- Function: eieio-class-name class
Return a string of the form ‘#<class myclassname>’ which should
look similar to other Lisp objects like buffers and processes.
Printing a class results only in a symbol.
but it is not right, the value is not string at all, it's a symbol
(defclass my-class () ())
;; => my-class
(eieio-class-name 'my-class)
;; => my-class
(type-of (eieio-class-name 'my-class))
;; => symbol
The git master produced the same result as Emacs 26.3. I notice Emacs
24.3's class-name produces the expected result and the function is
replaced by eieio-class-name since 24.4
(define-obsolete-function-alias 'class-name #'eieio-class-name "24.4")
however, these two functions are different. It seems eieio-class-name
contains a bug, the name suggests its value is a string, but it
returns a symbol.
This bug report was last modified 5 years and 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.