GNU bug report logs - #23105
25.0.92; map-put does not change its argument MAP

Previous Next

Package: emacs;

Reported by: Sho Takemori <stakemorii <at> gmail.com>

Date: Thu, 24 Mar 2016 12:10:02 UTC

Severity: normal

Tags: fixed

Found in version 25.0.92

Fixed in version 25.1

Done: Nicolas Petton <nicolas <at> petton.fr>

Bug is archived. No further changes may be made.

Full log


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Nicolas Petton <nicolas <at> petton.fr>
Cc: Sho Takemori <stakemorii <at> gmail.com>, 23105 <at> debbugs.gnu.org
Subject: Re: bug#23105: 25.0.92; map-put does not change its argument MAP
Date: Fri, 25 Mar 2016 18:32:11 +0100
Nicolas Petton <nicolas <at> petton.fr> writes:

> > It is an expected error?
>
> Yes, in the sense that the same error will be raised if you try to do it
> with a setf on an alist:

> [...]

> Note however that mutating literal lists is in general not a good idea,
> as conses might be shared.

Calling `map-put' in this way is also not useful.


Michael.




This bug report was last modified 9 years and 62 days ago.

Previous Next


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