Mosè Giordano <m...@gnu.org> writes:

Hi Mosè,

> finally here is my patch to suggest to run makeindex when needed.  In
> a complex document with index and bibliography AUCTeX now suggests to
> run
>
>     LaTeX
>     BibTeX
>     LaTeX
>     LaTeX
>     Index
>     LaTeX
>     LaTeX

Great, thanks.

> Now, implementation of my patch:  there are two variables,
> `TeX-idx-md5-alist' and `TeX-idx-changed-alist' (probably `LaTeX-*'
> would be better names),

Yes, LaTeX would be better.

> which record the md5 hashes of idx files and whether they changed
> after a LaTeX run.

Why two alists and not just one with (FILE MD5 CHANGED) entries?

> A note about the fact I used alists instead of local variables for
> `TeX-idx-md5-alist' and `TeX-idx-changed-alist'.  I first thought to
> set local variables in idx files, but we need to open those files and
> hope the user won't kill them.  Another possibility would be to set
> those variables locally in output buffer since `TeX-command-default'
> already requires that buffer to be still alive, but it seems local
> variables are killed there before running a command.  My last choice
> has been to use a global alist.  Does someone have better idea about
> how to store md5 hash and the information about status of idx file?

Storing them buffer-locally in the master file's buffer would also work,
no?

Bye,
Tassilo

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to