[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: latex.el: completing-read and REQUIRE-MATCH
From: |
Tassilo Horn |
Subject: |
Re: latex.el: completing-read and REQUIRE-MATCH |
Date: |
Sat, 15 Jul 2023 07:59:23 +0200 |
User-agent: |
mu4e 1.11.9; emacs 30.0.50 |
Arash Esbati <arash@gnu.org> writes:
Hi Arash,
> This is uncommon compared to other functions we have and also is
> annoying if you're using vertico.el for instance: vertico obeys the
> REQUIRE-MATCH arg and selects the first elements of the COLLECTION
> automatically. If you're used to hit RET, then this element is also
> selected and inserted into the buffer, regardless if it is an optional
> one. One could circumvent this by hitting 'M-RET' in the minibuffer,
> but it is still annoying. Any complaints if we remove the 'nil t'
> part in the functions above?
No complaint from me but maybe 'nil (null optional)' would be an
alternative approach, i.e., require a match only for mandatory
arguments.
Bye,
Tassilo