[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
- One-off history for read-string, Marcin Borkowski, 2015/09/24
- Re: One-off history for read-string,
Stefan Monnier <=
- Re: One-off history for read-string, Emanuel Berg, 2015/09/24
- Re: One-off history for read-string, Marcin Borkowski, 2015/09/25
- Re: One-off history for read-string, Emanuel Berg, 2015/09/25
- Re: One-off history for read-string, John Mastro, 2015/09/25
- Re: One-off history for read-string, Emanuel Berg, 2015/09/25
- Re: One-off history for read-string, Marcin Borkowski, 2015/09/26
- Re: One-off history for read-string, Emanuel Berg, 2015/09/26
- Re: One-off history for read-string, Marcin Borkowski, 2015/09/27