[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Insertion of braces when the last argument of a macro
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX-devel] Insertion of braces when the last argument of a macro is optional |
Date: |
Sun, 06 Oct 2013 19:53:30 +0200 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Mosè Giordano <address@hidden> writes:
>> I don't know, but maybe it would be better to have an explicit,
>> buffer-local alist (TeX-insert-braces-alist?) of macros that either
>> require braces or must not have braces. Example:
>>
>> '(("toprule" . nil) ;; there must not be {}
>> ("foobar" . t)) ;; there must be {}
>>
>> Then `TeX-parse-macro' could check this alist first before using the
>> standard heuristics.
>
> I agree again. See the refreshed `booktabs.patch'.
>
>> Maybe a good idea was to add another possible value
>> `show-all-optional-args' to `TeX-insert-macro-default-style' which
>> would always query for all optional args, regardless the value of
>> `last-optional-rejected'.
>
> Ok, the patch `show-all-optional-args.patch' should do that.
Both look fine to me, just go ahead and push them. Thanks!
Bye,
Tassilo