unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect
@ 2019-11-24 15:11 Xu Chunyang
  2019-11-25 17:08 ` bug#38374: " Xu Chunyang
  2019-11-26  1:34 ` bug#38365: " Lars Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Xu Chunyang @ 2019-11-24 15:11 UTC (permalink / raw)
  To: 38365

(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.





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

end of thread, other threads:[~2019-11-27 13:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-24 15:11 bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect Xu Chunyang
2019-11-25 17:08 ` bug#38374: " Xu Chunyang
2019-11-26  1:34 ` bug#38365: " Lars Ingebrigtsen
2019-11-26 20:44   ` Stefan Monnier
2019-11-27 12:13     ` Lars Ingebrigtsen
2019-11-27 13:52       ` Stefan Monnier
2019-11-27 13:55         ` Lars Ingebrigtsen
2019-11-27 13:57         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).