[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Environment optional argument defect
From: |
Arash Esbati |
Subject: |
Re: Environment optional argument defect |
Date: |
Mon, 28 Nov 2022 10:43:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Hi Keita,
Ikumi Keita <ikumi@ikumi.que.jp> writes:
> The primary awkwardness is that a user who customizes
> `TeX-insert-macro-default-style' to `mandatory-args-only' has to
> remember always whether the macro has optional argument or not when
> he/she is going to insert it. However, it's sometimes only after
> C-c C-m that he/she realizes that "Gosh, this time I need the optional
> argument." The user has to pay attention to type C-u before C-c C-m.
> That adds extra loads to the user.
Ok, I see your point. My approach to this is a little different: I
think the "lottery" you describe should be moved outside the minibuffer
-- this was one of the main points for the in-buffer completion in
AUCTeX. My way would be: Ok, I needed an optional argument but I missed
it, so I complete the current query and do it in the buffer later with
completion (if applicable) and don't start the whole query process. But
that's only me.
> Ideally, AUCTeX should allow the user to toggle on the inquiry of
> optional argument even after C-c C-m was typed, in my opinion. :-)
See above; I don't argue against this, if Someoneā¢ implements this :-)
> I'm not sure what is the best way to achieve that; maybe we can turn
> some key bind without much importance during C-c C-m procedure,
> e.g. C-SPC or C-left, to restart `TeX-parse-arguments' again.
That would be in a binding in `minibuffer-mode-map', right?
Best, Arash