GNU bug report logs -
#55645
src/print.c; print_object changes make it impossible to compare elisp code across versions
Previous Next
Reported by: Tom Gillespie <tgbugs <at> gmail.com>
Date: Wed, 25 May 2022 23:13:01 UTC
Severity: normal
Tags: moreinfo, wontfix
Done: Tom Gillespie <tgbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tom Gillespie <tgbugs <at> gmail.com> writes:
> That being said, I think this is be the first time in the history
> of emacs that prin1 for symbols has changed, so having a
> way to preserve the old behavior for things that depend on it
> would be greatly appreciated.
That's makes sense, but:
>> prin1? Stable for 30 years? Nope. (But some objects have had a stable
>> printed representation that long, I'm sure.)
>
> Er, indeed, I was being overly general, I meant symbols specifically.
If you're using prin1 as a way to compare stably differences between
objects, this only works by accident: You have to be very lucky in which
objects you have included in the output so far if you've managed to make
this code work over time.
We can indeed add something that lets you control how symbols in
specific are output by prin1, but I don't really see the utility in
general -- because we have changed, and will change, how other objects
are output by prin1, and if the objects you're outputting happens to
contain these, your algo will break again.
So I think this is one of those "don't do that" things, unfortunately.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 2 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.