GNU bug report logs - #40692
28.0.50; Constant list modified inside function

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Fri, 17 Apr 2020 23:46:02 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Štěpán Němec <stepnem <at> gmail.com>
Cc: Ivan Andrus <darthandrus <at> gmail.com>, 40692 <at> debbugs.gnu.org
Subject: bug#40692: 28.0.50; Constant list modified inside  function
Date: Sun, 19 Apr 2020 00:49:02 +0200
Štěpán Němec <stepnem <at> gmail.com> writes:

> > Now, I understand reference semantics of lists in general, but it
> > seems like this should be different. If this behavior is intentional,
>
> I think it is, although I admit I was confused by it, too, as I've
> somehow come to believe that e.g. `(list) macroexpands to (list 'list),
> but that's not the case: it expands to '(list).

Yes, I had been bitten by this as well some time ago.  I don't find the
discussion anymore, I had asked somewhere and the answer was that it's
an intended feature of backquote to produce an expansion like that.

Michael.




This bug report was last modified 3 years and 324 days ago.

Previous Next


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