Arash Esbati <[email protected]> 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


_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to