auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Adding key/vals to predefined ones


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Adding key/vals to predefined ones
Date: Mon, 23 Feb 2015 08:26:15 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Arash Esbati <address@hidden> writes:

Hi Arash,

>> So your completion functions would use as completion table
>> 
>>   (append (LaTeX-enumitem-SetEnumitemKey-list)
>>           (LaTeX-enumitem-SetEnumitemValue-list)
>>           LaTeX-enumitem-key-val-options)
>
> Thanks for your comments and sorry for my late response.  I played
> with this idea but I ended up defining a `key-val-local' and a
> function `LaTeX-enumitem-update-key-val-options' hooked in where
> required.

I haven't looked at your complete code again but isn't the problem with
the buffer-local variable that it's, well, buffer-local whereas it
actually should be document-local.  That is, in a multi-file document
using enumitem, the new key-vals are only available in the buffer of the
file containing the new key-val definition but not in other buffers of
the same document?

That's what I had in mind when I suggested you use
`LaTeX-enumitem-SetEnumitemKey-list' and
`LaTeX-enumitem-SetEnumitemValue-list' directly instead of having
another variable because the auto-parser information is document-local
automatically.

So could you please validate that it works as expected with multi-file
documents?

Bye,
Tassilo




reply via email to

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