auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] TeX-insert-macro-default-style not applied?


From: Mosè Giordano
Subject: Re: [AUCTeX] TeX-insert-macro-default-style not applied?
Date: Sun, 28 Oct 2018 11:09:59 +0100

Hi Manuel,

On Sat, Oct 27, 2018 at 5:03 PM Manuel Wiesinger <address@hidden> wrote:
>
> Hi all,
>
> When I set TeX-insert-macro-default-style to mandatory-args-only,
> C-<RET> still asks me for optional arguments.
>
> E.g. when entering \textcolor, AUCTeX asks for the optional color model
> argument and inserts \textcolor[some_model]{some_color}{some_text}. With
> TeX-insert-macro-default-style set to mandatory-args-only, I would
> expect that I'm only asked for the mandatory color and text arguments
> and that \textcolor{some_color}{some_text} is inserted.
>
> Other macros show similar behavior.
>
> I tried this with Emacs 26.1, on two machines and with a minimal config,
> just loading AUCTeX.
> Is this a bug, or I missing something?

`\textcolor' and similar macros use `TeX-arg-color' to insert the
color and indeed this function doesn't respect
`TeX-insert-macro-default-style', but this may be considered a feature
rather than a bug because the color specification in the mandatory
argument strongly depends on the model.  The style file was created by
Arash, maybe he can give us a comment about this.

Bye,
Mosè



reply via email to

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