[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HIST to read-from-minibuffer
From: |
Juri Linkov |
Subject: |
Re: HIST to read-from-minibuffer |
Date: |
Tue, 25 May 2010 19:09:18 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
> I am trying to read a string with a hist variable. I want the default to
> be the first element of the hist variable and the history to start from
> the SECOND element.
>
> I can seem to get the behaviour I want with '(hist . 1) but not '(hist .
> 2). However the doc string says:
>
> "positions are counted starting from 1 at the beginning of the list"
>
> This looks contradictory to the behaviour I observed. Is this a mistake
> on my understand or the doc string? Thanks.
Sorry, I don't understand what is contradictory?
(let ((hist '("a" "b" "c")))
(read-from-minibuffer "Prompt: " nil nil nil '(hist . 2)))
M-p => "c"
--
Juri Linkov
http://www.jurta.org/emacs/
- HIST to read-from-minibuffer, Leo, 2010/05/22
- Re: HIST to read-from-minibuffer,
Juri Linkov <=
- Re: HIST to read-from-minibuffer, Leo, 2010/05/25
- Re: HIST to read-from-minibuffer, Juri Linkov, 2010/05/25
- Re: HIST to read-from-minibuffer, Leo, 2010/05/25
- Re: HIST to read-from-minibuffer, Leo, 2010/05/25
- Re: HIST to read-from-minibuffer, Juri Linkov, 2010/05/30
- Re: HIST to read-from-minibuffer, Leo, 2010/05/31