GNU bug report logs - #72434
[PATCH] Print list-ending comma/backquote forms specially

Previous Next

Package: emacs;

Reported by: Thuna <thuna.cing <at> gmail.com>

Date: Sat, 3 Aug 2024 01:32:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Thuna <thuna.cing <at> gmail.com>
To: 72434 <at> debbugs.gnu.org
Subject: bug#72434: [PATCH] Print list-ending comma/backquote forms specially
Date: Sat, 03 Aug 2024 03:44:30 +0200
> (This patch follows from 72334, but that patch is not necessary for this
> one to work.)

Actually, that is incorrect...-ish.  The specific problem happens when
you encounter a comma or comma-at while not inside a backquote.  With
72334 this is not a problem, but without it you end up with the
(unevaluated) form
  (foo bar . ,baz)
printed as
  (foo bar . (\, baz))
which is obviously not ideal.

It /should/ be possible to lightly change the patch to have it work, by
checking `new_backquote_output' in case the car is a comma or a comma-at
but honestly I would just rather 72334 be pushed instead.





This bug report was last modified 1 year and 12 days ago.

Previous Next


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