GNU bug report logs - #72334
[PATCH] Always print commas and comma-ats specially

Previous Next

Package: emacs;

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

Date: Sun, 28 Jul 2024 13:34:01 UTC

Severity: normal

Tags: patch

Full log


Message #23 received at 72334 <at> debbugs.gnu.org (full text, mbox):

From: Thuna <thuna.cing <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>, Stefan Monnier
 <monnier <at> iro.umontreal.ca>
Cc: 72334 <at> debbugs.gnu.org
Subject: Re: bug#72334: [PATCH] Always print commas and comma-ats specially
Date: Wed, 12 Feb 2025 01:06:45 +0100
[Message part 1 (text/plain, inline)]
> Thanks.
>
> Thuna, I didn't study your patch very deeply yet but the first thing
> that stands out is that there are no tests.  Any chance you could look
> into that?

Sure.  It's somewhat late here so I'll write those tomorrow.  What
should quote and function do?  That is, should it be (foo . 'bar) or
(foo quote bar)?

The important thing is, though, I actually took a look at the patch
since it's been a while, and I was wrong, what I explained was bug
72434, which I've also attached here.

This patch _actually_ makes it so that (\, foo) [and (\,@ foo)] is
printed as ",foo" in every context, whereas it current prints like that
only if we are inside a quasiquoted form [that is, (\` (\, (\, foo))
prints as "`,(\, foo)"].

[If you're trying the other patch, I should note here as well that that
one builds on top of this one, so the results are incorrect if you only
apply that.  Specifically, when we're not in a backquote, (foo . ,bar)
prints as (foo . (\, bar)) instead.]

[0001-Print-list-terminating-backquote-and-comma-forms-spe.patch (text/x-patch, attachment)]

This bug report was last modified 103 days ago.

Previous Next


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