[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23105: 25.0.92; map-put does not change its argument MAP
From: |
Nicolas Petton |
Subject: |
bug#23105: 25.0.92; map-put does not change its argument MAP |
Date: |
Thu, 24 Mar 2016 19:04:08 +0100 |
User-agent: |
Notmuch/0.21 (http://notmuchmail.org) Emacs/25.1.50.1 (x86_64-unknown-linux-gnu) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Sho Takemori <stakemorii@gmail.com> writes:
>
>> By expanding map-put, I found that it returns a new list if "m" is a
>> list and the key is not in "m".
>
> Indeed, good catch.
>
> The implementation of `map-put' is wrong: it binds the evaluated place
> expression to a new symbol and uses that symbol as place to operate on.
>
> The intention presumably was to avoid code duplication in the macro
> expansion - which is good - but it fails to change the original place.
Now that I have a second look at it, I don't see why `map-put' (and
`map-delete' for that matter) are macros. I'll see if I can replace
them with functions and have all the tests green.
Nico
signature.asc
Description: PGP signature
- bug#23105: 25.0.92; map-put does not change its argument MAP, Sho Takemori, 2016/03/24
- bug#23105: 25.0.92; map-put does not change its argument MAP, Michael Heerdegen, 2016/03/24
- Message not available
- bug#23105: 25.0.92; map-put does not change its argument MAP, Sho Takemori, 2016/03/25
- bug#23105: 25.0.92; map-put does not change its argument MAP, Nicolas Petton, 2016/03/25
- bug#23105: 25.0.92; map-put does not change its argument MAP, Sho Takemori, 2016/03/25
- bug#23105: 25.0.92; map-put does not change its argument MAP, Michael Heerdegen, 2016/03/25
- bug#23105: 25.0.92; map-put does not change its argument MAP, Michael Heerdegen, 2016/03/25
- bug#23105: 25.0.92; map-put does not change its argument MAP, Nicolas Petton, 2016/03/25