[Top][All Lists]

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

Re: Environment optional argument defect

From: Ikumi Keita
Subject: Re: Environment optional argument defect
Date: Fri, 02 Dec 2022 19:53:24 +0900

Hi Arash,

>>>>> Arash Esbati <> writes:
>> How can we activate input support for environment optional arguments
>> if the user customizes `TeX-insert-macro-default-style' to
>> `mandatory-args-only'?

> I see 2 possibilities:

>   - Move the queries more into the style hooks and push them through
>     `TeX-parse-arguments'
>   - If one function asks for more arguments, use
>     `LaTeX-check-insert-macro-default-style' which is more tedious

> As an example, try this small file and do 'C-c C-e align* RET' after
> changing the value of `TeX-insert-macro-default-style':

I still don't understand well your suggestion, but I began to feel like
that a new framework is suitable for the current topic.

0. Most users who customize `TeX-insert-macro-default-style' to
   `mandatory-args-only' want to skip optional arguments for only a
   limited set of macros, not all the macros. (I guess so, at least I
   am such a user.)
1. Introduce a new user option holding macro names which the user wants
   to skip query about optional under usual circumstances (just like
2. In principle, all users don't customize
   `TeX-insert-macro-default-style' (i.e., keep it as

[a] Each user has to remember only a few macros that he/she registered
in the new option and to type C-u before C-c C-m for exceptional cases
which do need optional arguments.
[b] The user always benefits from query of optional args when entering
environments by C-c C-e. 

I consider implementing such feature in AUCTeX when I have more spare
time :-)

Ikumi Keita
#StandWithUkraine #StopWarInUkraine

reply via email to

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