[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: completing-read depricated initial-input
From: |
Arash Esbati |
Subject: |
Re: completing-read depricated initial-input |
Date: |
Thu, 23 Jun 2022 14:12:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> The purpose of `completing-read' is a bit different from `read-string'
> and `read-from-minibuffer'. Providing INITIAL-INPUT is useful for the
> latter, but much less for `completing-read' in my opinion. If at all
> (anybody who has a believable real-life example?).
If you have a common prefix which should be shown in the candidates
list, in (La)TeX for instance:
(let ((list '("iffalse" "iftrue" "else" "fi")))
(completing-read "Macro: "
(mapcar (lambda (x) (concat "\\" x)) list)
nil nil "\\"))
Something like this looks odd:
(let ((list '("iffalse" "iftrue" "else" "fi")))
(completing-read "Macro: \\" list))
Best, Arash
- RE: [External] : Re: completing-read depricated initial-input, (continued)
- RE: [External] : Re: completing-read depricated initial-input, Drew Adams, 2022/06/22
- standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Emanuel Berg, 2022/06/22
- RE: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Drew Adams, 2022/06/22
- Re: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Emanuel Berg, 2022/06/22
- RE: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Drew Adams, 2022/06/22
- Re: standard libraries again (was: Re: [External] : Re: completing-read depricated initial-input), Emanuel Berg, 2022/06/22
- Re: completing-read depricated initial-input, Arash Esbati, 2022/06/23
- Re: completing-read depricated initial-input, carlmarcos, 2022/06/23
- Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/23
- Re: completing-read depricated initial-input, Michael Heerdegen, 2022/06/23
- Re: completing-read depricated initial-input,
Arash Esbati <=
- Re: completing-read depricated initial-input, Michael Heerdegen, 2022/06/23
- RE: [External] : Re: completing-read depricated initial-input, Drew Adams, 2022/06/23
- Re: [External] : Re: completing-read depricated initial-input, Michael Heerdegen, 2022/06/23
- Re: [External] : Re: completing-read depricated initial-input, Christopher Dimech, 2022/06/23
- Re: [External] : Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/23
- Re: RE: [External] : completing-read depricated initial-input, Christopher Dimech, 2022/06/23
- Re: [External] : Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/23
- Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/23
- Re: completing-read depricated initial-input, Emanuel Berg, 2022/06/23
- Re: completing-read depricated initial-input, Stefan Monnier, 2022/06/23