emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using gv in map and seq?


From: Nicolas Petton
Subject: Re: Using gv in map and seq?
Date: Tue, 16 Jun 2015 09:13:03 +0200
User-agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-redhat-linux-gnu)

Stefan Monnier <address@hidden> writes:

>> Something like the patch below seems to work (and it generalizes
>> map-put to accept for MAP not only symbols but any "lvalue").  It also
>> tightens the code generated by map--dispatch.
>
> BTW, just like `map-put', it suffers from the major problem that it
> hardcodes in the macroexpanded code (i.e. in the .elc files of Elisp
> packages that use map-put) the current definition of map--dispatch and
> the current 3 supported map types.

Indeed, I never though about this issue!

> So we should introduce a helper function (call it map--put) and move
> most of the setter's code there (including the dispatch).

Yes, I can do that.
-- 
Nicolas Petton
http://nicolas-petton.fr

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]