4.33; reftex-toc does not work, for certain values of kill-buffer-hook

Uwe Brauer <oub <at> mat.ucm.es>
2010-06-16 12:42:59 GMT

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.
Check if the bug is reproducable with an up-to-date version of
RefTeX available from http://www.gnu.org/software/auctex/.
If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.
Your bug report will be posted to the AUCTeX bug reporting list.
------------------------------------------------------------------------
Hello
I usually have the following function called in the
kill-buffer-hook.
(add-hook 'kill-buffer-hook 'ensure-in-vc-or-check-in-modes)
This function works for buffers in elisp latex and matlab
mode and does a chekin for files under (RCS) version
control. However strangely enough when I call ref-toc the
toc is not shown. I have to manually remove the function
from the hook in order that it works.
Is this a bug or feature?
regards

Re: 4.33; reftex-toc does not work, for certain values of kill-buffer-hook

Uwe Brauer <oub <at> mat.ucm.es>
2010-06-27 19:57:34 GMT

Ralf Angeli wrote:
> * Uwe Brauer (2010-06-20) writes:
>
>>>>>>> On Fri, 18 Jun 2010 18:03:29 +0200, Ralf Angeli<angeli <at> caeruleus.net> wrote:
>>
>> > * Uwe Brauer (2010-06-16) writes:
>>
>> > In my case `ensure-in-vc-or-check-in-modes' is not defined when starting
>> > XEmacs 21.4.22 with
>> > $ xemacs -q -no-site-file
>>
>> Well the reason is: this function is not part of standard
>> Xemacs.
>>
>> I just attach the whole lisp file.
>
> Evaluating the file contents, loading circ.tex and typing `C-c =' brings
> up the table of contents without problems, using XEmacs 21.4.22 with the
> packaged RefTeX 4.21. Does this only happen with 4.33? (I'm not sure
> how you installed that, because the installation procedure does not
> support XEmacs.)
>
So you loaded the file I attached and put the function in
the kill-buffer-hook?
I did not check 4.21, since I have upgraded to 4.33 several
months ago (4.21 has some annoying bugs).
What do you mean is not officially supported?
One thing is that we can't have it in the package system and
neither auctex 11.85, because of GPL3 (not all files in

Re: Re: 4.33; reftex-toc does not work, for certain values of kill-buffer-hook

Ralf Angeli <angeli <at> caeruleus.net>
2010-06-27 20:13:35 GMT

* Uwe Brauer (2010-06-27) writes:
> Ralf Angeli wrote:
>>
>> Evaluating the file contents, loading circ.tex and typing `C-c =' brings
>> up the table of contents without problems, using XEmacs 21.4.22 with the
>> packaged RefTeX 4.21. Does this only happen with 4.33? (I'm not sure
>> how you installed that, because the installation procedure does not
>> support XEmacs.)
>>
> So you loaded the file I attached and put the function in
> the kill-buffer-hook?
The code in the file does this already.
> I did not check 4.21, since I have upgraded to 4.33 several
> months ago (4.21 has some annoying bugs).
>
> What do you mean is not officially supported?
There simply is no installation procedure for XEmacs.
> One thing is that we can't have it in the package system and
> neither auctex 11.85, because of GPL3 (not all files in
> Xemacs are under GPL2+) :'(.
>
> INSTALLATION:
> I changed in the make file
> EMACS=/usr/bin/xemacs21-mule
> run make

where is turn-on-reftex (was: Re: 4.33; reftex-toc does not work, for certain values of kill-buffer-hook)

Uwe Brauer <oub <at> mat.ucm.es>
2010-06-30 16:32:22 GMT

>>>>> On Sun, 27 Jun 2010 22:13:35 +0200, Ralf Angeli <angeli <at> caeruleus.net> wrote:
There is something odd:
the installation file for 4.22 and 4.33 states
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
I used this for years and indeed
in 4.22 there was the function
(defun turn-on-reftex ()
"Turn on RefTeX mode."
(reftex-mode t))
Now that function is gone in 4.33 and I can't find the
relevant ChangeLog entry.
What happened?
Uwe Brauer