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

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

Re: [External] : Re: Operating the HIST feature of completing-read


From: Jean Louis
Subject: Re: [External] : Re: Operating the HIST feature of completing-read
Date: Wed, 13 Jul 2022 05:04:46 +0300
User-agent: Mutt/+ () (2022-06-11)

* carlmarcos@tutanota.com <carlmarcos@tutanota.com> [2022-07-13 04:16]:
> 
> Jul 12, 2022, 16:40 by drew.adams@oracle.com:
> 
> >> Does the history remember the user input associated
> >> with each specific completing-read call?
> >>
> >
> > Only each specific history variable.
> >
> > If each `completing-read' (or `read-from-minibuffer'
> > or whatever) call used a different history variable
> > then the answer to your question would be yes.
> >
> 
> Have done as suggested 
> 
> (defvar myhist nil
>   "Stores previous minibuffer inputs so the user can reuse them.")
> 
>   (let* ( (cseq '("bracemk" "expression" "extended" "mixed" "hlsexp" 
> "disable"))
>           (csel  (completing-read "Glowvis: " cseq nil t "mixed" myhist 
> "extended"))
> nn
> When I go through the list in the minibuffer I am also getting the variable 
> myhist
> showing up but its value stays nil.

It should be 'myhist instead of myhist in completing-read


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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