From: akater <nuclearspace@gmail.com>
To: 41814@debbugs.gnu.org
Subject: bug#41814: defmethod cl-print-object is not entirely reliable
Date: Thu, 11 Jun 2020 20:05:38 +0000 [thread overview]
Message-ID: <87ftb1qsfh.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
I'm on Emacs 28.0.50. I believe cl-print-object method code is not used when it
should be.
emacs -Q
C-x b *scratch* RET
(require 'eieio) C-x C-e RET
(defclass test nil nil) C-x C-e RET
(defmethod cl-print-object ((x test) s) (princ "#<test>" s)) C-x C-e RET
(make-feature 'test) RET C-u C-x C-e
For me, this prints like a structure (?): #s(test)
Now,
C-x 3
M-x ielm RET
(make-feature 'test) RET
This does make use of cl-print-object method:
#<test>
Structure method seems to also be used in org-babel evaluations.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
next reply other threads:[~2020-06-11 20:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 20:05 akater [this message]
2020-06-12 10:26 ` bug#41814: defmethod cl-print-object is not entirely reliable Michael Heerdegen
2020-07-06 19:01 ` akater
2021-06-13 11:23 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftb1qsfh.fsf@gmail.com \
--to=nuclearspace@gmail.com \
--cc=41814@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 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).