GNU bug report logs - #41814
defmethod cl-print-object is not entirely reliable

Previous Next

Package: emacs;

Reported by: akater <nuclearspace <at> gmail.com>

Date: Thu, 11 Jun 2020 20:29:01 UTC

Severity: normal

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: akater <nuclearspace <at> gmail.com>
Cc: 41814 <at> debbugs.gnu.org
Subject: bug#41814: defmethod cl-print-object is not entirely reliable
Date: Fri, 12 Jun 2020 12:26:20 +0200
akater <nuclearspace <at> 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.




This bug report was last modified 3 years and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.