[Top][All Lists]

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

Re: need for 'dynamical-let'?

From: Dmitry Gutov
Subject: Re: need for 'dynamical-let'?
Date: Fri, 24 Jul 2015 00:03:29 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0

On 07/23/2015 11:54 PM, Stephen Leake wrote:

So I have to change code like this:

(let (branch-list
    (add-to-list branch-list (substring branch-entry 2) t)


(defvar dvc-branch-list);; add-to-list can't use lexical var
(let (
    (add-to-list 'dvc-branch-list (substring branch-entry 2) t)

You should use `push'. Or maybe `cl-pushnew'.

reply via email to

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