help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: One-off history for read-string


From: Stefan Monnier
Subject: Re: One-off history for read-string
Date: Thu, 24 Sep 2015 11:47:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Is it fine to use a temporary, let-bound variable name as the HISTORY
> parameter, or is there a better way for a "history" I only need to read
> from, not to write to?

It's probably OK, but do declare this variable with (defvar <myvar>)
since it shouldn't be lexically bound

Note also that if the user uses nested minibuffers, she may have two
such commands active at the same time, so you may need to generate the
symbol dynamically rather than always use the same symbol.


        Stefan




reply via email to

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