Red Hat Bugzilla – Bug 144083
latex-mode-hook is not run
Last modified: 2007-11-30 17:10:57 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
Documentation string of latex-mode says:
"[...] Entering Latex mode runs the hook `text-mode-hook', then
`tex-mode-hook', and finally `latex-mode-hook'. When the special
subshell is initiated, `tex-shell-hook' is run."
latex-mode-hook is never run however. [not even defvar'd]
Also the text-mode-hook is not run.
Line 822 of tex-mode.el only says:
whereas the correct (IMHO) behaviour would be
[as done by xemacs' version of tex-mode.el line 354]
(run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook))
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: latex-mode-hook is not run (is never defined)
Expected Results: latex-mode-hook should be run (according to
assuming all platforms since bug is caused by emacs-lisp code.
This seems to have been fixed by now in cvs emacs.
Adding a patch to next build to fix this.
Should be fixed in 21.3-24. Please confirm.
It is not fixed with:
I didn't find the -24 version and did not have time to check the last few weeks.
has someone undone the patch ?
Created attachment 112014 [details]
Right, the above patch is currently only in FC/devel (rawhide).
I feel this change is too small to warrant a whole FC3 update
of Emacs in itself. But please either install the build
in rawhide or try the above patch on your install.
OK. it works with both (1) the patch and (2) the emacs version from your
apt-repository (21.3.50-0.20041210). I couldn't resolve FC/devel (rawhide) :-(
Sorry, seems the patch wasn't actually being applied in rawhide yet.
It should really be there from 21.3-27.
fc devel (formerly rawhide) means the current Fedora Core Development Tree:
see eg /etc/yum.repos.d/fedora-devel.repo or your local fedora mirror.