From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 30070@debbugs.gnu.org
Subject: bug#30070: 27.0.50; cl-print sometimes prints self-referencing objects as #1=#<thing>
Date: Wed, 10 Jan 2018 15:39:46 -0500 [thread overview]
Message-ID: <jwvr2qxqwq9.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87fu7dtsfc.fsf@web.de> (Michael Heerdegen's message of "Wed, 10 Jan 2018 20:39:03 +0100")
> That gives me "#1=#<thing>". That's weird because the printed
> representation of the thing doesn't refer to itself.
Yes, it's a known misfeature (to me at least). I don't know how we
could fix it, tho: the cycle-detection is done in a preprocessing phase
which doesn't know about any print format (nor about cl-print), so by
the time we learn the the object will be printed as "#<thing>", we have
already printed "#1=".
To fix it, I have the impression that we'd have to make cl-print a lot
more complex, and potentially its API as well (e.g. add a matching
cl-preprocess method additionally to cl-print-object).
Stefan
next prev parent reply other threads:[~2018-01-10 20:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 19:39 bug#30070: 27.0.50; cl-print sometimes prints self-referencing objects as #1=#<thing> Michael Heerdegen
2018-01-10 20:39 ` Stefan Monnier [this message]
2018-01-11 14:45 ` Michael Heerdegen
2018-01-11 15:10 ` Stefan Monnier
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=jwvr2qxqwq9.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=30070@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/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.