Mosè Giordano <[email protected]> writes:
Hi Mosè,
> in *TeX empty groups aren't harmless and I think AUCTeX shouldn't
> append braces to a macro when its last argument is optional.
I'm not sure. I think that depends on how the macro is question has
been defined, and AUCTeX cannot find out. For example, take this macro
with just one optional argument:
\newcommand{\jimgoes}[1][surfing]{Jim goes #1}
Then these all look good:
\jimgoes[fishing] and then drinks a beer.
\jimgoes[fishing]{} and then drinks a beer.
\jimgoes{} and then drinks a beer.
But here you get "surfingand" cause the macro eats the next whitespace:
\jimgoes and then drings a beer.
Bye,
Tassilo
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel