GNU bug report logs - #72328
[PATCH] Nested backquote in pcase

Previous Next

Package: emacs;

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

Date: Sun, 28 Jul 2024 01:06: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


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Thuna <thuna.cing <at> gmail.com>
Cc: 72328 <at> debbugs.gnu.org
Subject: Re: bug#72328: [PATCH] Nested backquote in pcase
Date: Tue, 30 Jul 2024 19:53:04 +0200
Thuna <thuna.cing <at> gmail.com> writes:

> The one downside that I can see is the situation I mentioned in my
> previous message where you explicitly *want* to bypass all backquotes,
> plus the fact that this is backwards incompatible, even though to be
> effected you would need to be making use of the fact that comma behaves
> this way - which I still don't believe will be too common - though there
> could be an obsoletion period where comma still bypasses backquotes but
> warns the user to change off of that behavior.  All code making use of
> the new behavior will firmly be incompatible with older versions of
> emacs for which this is not patched, however.

Ok.

I actually found something I wrote myself.  In "el-search" I am using a
pattern like used here:

  (pcase '`qpat (``,qpat qpat)) --> qpat

i.e. a pattern checking for backquoted QPATS.  When your patch is
installed this pattern doesn't match any more.  I could rewrite that of
course - I just wanted to share the example without implying anything
else.


Michael.






This bug report was last modified 236 days ago.

Previous Next


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