GNU bug report logs - #77656
[PATCH] Don't escape "." in `prin1' unless followed by "?" or nothing

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Tue, 8 Apr 2025 21:43:02 UTC

Severity: normal

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: larsi <at> gnus.org, Eli Zaretskii <eliz <at> gnu.org>, Andrea Corallo <acorallo <at> gnu.org>, Stefan Kangas <stefankangas <at> gmail.com>, 77656 <at> debbugs.gnu.org
Subject: bug#77656: [PATCH] Don't escape "." in `prin1' unless followed by "?" or nothing
Date: Tue, 15 Apr 2025 12:23:01 -0400
> As for future Emacsen, I contend that we won't want to change how this
> lexes in the future - it would break let-alist, for one thing.
>
> Incidentally, making it easier to work with let-alist was one of my main
> motivations for this change, since it ubiquitously uses symbols which
> start with ".".

Thanks, it's good to have a clear use-case.  You might want to mention
it in the commit message (tho at least now it's in the associated bug thread).
How often/much do we care about the printed form of `let-alist` expressions?
Maybe limiting the effect to ". at the beginning of symbol doesn't need
to be a escaped if the second char is a letter" would be good enough?


        Stefan





This bug report was last modified 21 days ago.

Previous Next


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