From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041129 Firefox/1.0 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: (run-hooks 'tex-mode-hook)) 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): emacs-common-21.3-12, emacs-el-21.3-12 How reproducible: Always Steps to Reproduce: start latex-mode Actual Results: latex-mode-hook is not run (is never defined) Expected Results: latex-mode-hook should be run (according to documentation) Additional info: 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: emacs-21.3-25 emacs-common-21.3-25 emacs-el-21.3-25 emacs-leim-21.3-25 emacs-nox-21.3-25 packages from http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/ 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] emacs-21.3-latex-mode-hook-144083.patch 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) :-( thanks
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.