[Top][All Lists]

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

Re: [AUCTeX-devel] How to check whether makeindex should be rerun?

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] How to check whether makeindex should be rerun?
Date: Mon, 07 Sep 2015 13:36:09 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Mosè Giordano <address@hidden> 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,


reply via email to

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