Hi Arash, >>>>> Ikumi Keita <ik...@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