From: Xu Chunyang <xuchunyang56@gmail.com>
To: 38365@debbugs.gnu.org
Subject: bug#38365: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect
Date: Sun, 24 Nov 2019 23:11:10 +0800 [thread overview]
Message-ID: <CABCqdB=TaAbCNfDUtja=RBvUWOk+mApWkyVSG8Un7Q9s0WYfWw@mail.gmail.com> (raw)
(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.
next reply other threads:[~2019-11-24 15:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-24 15:11 Xu Chunyang [this message]
2019-11-25 17:08 ` bug#38374: 26.3; The info doc of eieio-class-name is outdated and its value looks incorrect 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABCqdB=TaAbCNfDUtja=RBvUWOk+mApWkyVSG8Un7Q9s0WYfWw@mail.gmail.com' \
--to=xuchunyang56@gmail.com \
--cc=38365@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.