[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] subfiles.el: implement patch provided by Arash Esbati
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] subfiles.el: implement patch provided by Arash Esbati |
Date: |
Tue, 29 Nov 2016 15:27:36 +0100 |
Hi Arash,
2016-11-29 8:49 GMT+01:00 Arash Esbati <address@hidden>:
> Hi Mosè,
>
> Mosè Giordano <address@hidden> writes:
>
>>> + ;; Tell RefTeX the same thing.
>>> + (when (and (boundp 'reftex-include-file-commands)
>>> + (not (member "subfile" reftex-include-file-commands)))
>>> + (add-to-list 'reftex-include-file-commands "subfile" t)
>>
>> Why do you check if "subfile" is member of
>> `reftex-include-file-commands' before calling `add-to-list'? This
>> same test is done inside `add-to-list'.
>
> That was meant to be the guard for `reftex-compile-variables'. I didn't
> want to run the function each time the style is loaded.
I see, makes sense. I saw that you used the same trick in other style
file recently, how about writing a function (or a macro, maybe) for
this purpose?
Bye,
Mosè