[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: One-off history for read-string
From: |
Emanuel Berg |
Subject: |
Re: One-off history for read-string |
Date: |
Fri, 25 Sep 2015 02:34:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Marcin Borkowski <mbork@mbork.pl> writes:
> (I'm working on a client for certain web service,
> and the history is kept on the server, so it really
> doesn't make sense to keep all those in my
> Emacs session.)
Perhaps not (?), but why think of this at all?
What problem is it, that you experience, or what
behavior do you seek?
> 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?
If you consider the prototype
(read-string PROMPT &optional INITIAL-INPUT HISTORY
DEFAULT-VALUE INHERIT-INPUT-METHOD)
you see that the HISTORY argument is optional - you
don't need to have anything there, and if you want to
pass something to subsequent optional arguments, pass
nil as HISTORY.
You can see an example of using `read-string' like
this here:
http://user.it.uu.se/~embe8573/conf/emacs-init/w3m/w3m-unisearch.el
on line 116.
--
underground experts united
http://user.it.uu.se/~embe8573
- One-off history for read-string, Marcin Borkowski, 2015/09/24
- Re: One-off history for read-string, Stefan Monnier, 2015/09/24
- Re: One-off history for read-string,
Emanuel Berg <=
- 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
- Re: One-off history for read-string, Emanuel Berg, 2015/09/27
- Re: One-off history for read-string, Stefan Monnier, 2015/09/27
- Re: One-off history for read-string, Marcin Borkowski, 2015/09/26