auctex-devel
[Top][All Lists]
Advanced

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

Re: doc string of TeX-read-key-val and multi-prompt-key-value


From: Ikumi Keita
Subject: Re: doc string of TeX-read-key-val and multi-prompt-key-value
Date: Wed, 14 Dec 2022 20:58:10 +0900

Hi Arash,

>>>>> Ikumi Keita <ikumi@ikumi.que.jp> writes:
>> TABLE is an alist.  The first element of each list is a string
>> representing a key and the optional second element is a list with
>> strings to be used as values for the key.

>> Does is make sense?  Any comments welcome.

> Reasonable. :-)

Looking at multi-prompt.el again, `multi-prompt-expand-completion-table'
is implemented so as to allow the second element to be a variable.
Actually, these sample codes work as expected:
----------------------------------------------------------------------
(setq bar '("1" "2" "3"))
(multi-prompt-key-value "Try: " '(("foo" bar)))
(TeX-read-key-val nil '(("foo" bar)))
----------------------------------------------------------------------

So how about this alternative?

TABLE is an alist where each entry is a list.  The first element
of each list is a string representing a key and the optional
second element is a list with strings to be used as values for
the key.  The second element can also be a variable which holds
such a value.

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine



reply via email to

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