unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: akater <nuclearspace@gmail.com>
Cc: 41814@debbugs.gnu.org
Subject: bug#41814: defmethod cl-print-object is not entirely reliable
Date: Fri, 12 Jun 2020 12:26:20 +0200	[thread overview]
Message-ID: <878sgs4m2b.fsf@web.de> (raw)
In-Reply-To: <87ftb1qsfh.fsf@gmail.com> (akater's message of "Thu, 11 Jun 2020 20:05:38 +0000")

akater <nuclearspace@gmail.com> writes:

> I'm on Emacs 28.0.50.  I believe cl-print-object method code is not
> used when it should be.

> (make-feature 'test) RET C-u C-x C-e
>
> For me, this prints like a structure (?): #s(test)

Yes, this doesn't use cl-print at all.  And I think that makes sense:
when inserting a value into a buffer, readability is important (that
doesn't make a difference in your case, though).

We have different printers now in Elisp, and implementing
cl-print-object only has an effect when cl-print is used.

I dunno if that fact could be better documented to avoid this kind of
confusion.

Michael.





  reply	other threads:[~2020-06-12 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-11 20:05 bug#41814: defmethod cl-print-object is not entirely reliable akater
2020-06-12 10:26 ` Michael Heerdegen [this message]
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=878sgs4m2b.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=41814@debbugs.gnu.org \
    --cc=nuclearspace@gmail.com \
    /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).