auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] New style enumitem.el


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] New style enumitem.el
Date: Wed, 11 Mar 2015 08:36:18 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Arash Esbati <address@hidden> writes:

>> Yes, I'd prefer that even if it's only for having more meaningful
>> (read, human-understandable) entries in auto/yourdoc.el.
>
> Will do.  As a final polish, I tweaked
> `LaTeX-enumitem-SetEnumitemValue-regexp' to ignore the 3. argument (usually
> (La)TeX-code not relevant for the style).

That's the `replacement' argument, right?  I see that you already ignore
that for \SetEnumitemKey.  BTW, in that case, your regular expressions
don't need to capture it, too.  So for \SetEnumitemKey, the second group
in your current regex

  "\\\\SetEnumitemKey{\\([^}]+\\)}{\\([^}]+\\)}"
                                   ^^^     ^^^
is not needed, and you could drop it

  "\\\\SetEnumitemKey{\\([^}]+\\)}{[^}]+}".

And then there's actually no reason to match the second argument anyway,
so you could just go with

  "\\\\SetEnumitemKey{\\([^}]+\\)}".

Bye,
Tassilo




reply via email to

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