Index: auctex/latex.el
diff -u auctex/latex.el:5.401 auctex/latex.el:5.402
--- auctex/latex.el:5.401       Tue Mar 14 09:03:35 2006
+++ auctex/latex.el     Wed Mar 15 20:36:02 2006
@@ -4687,10 +4687,12 @@
   (setq TeX-base-mode-name "LaTeX")
   (setq major-mode 'latex-mode)
   (setq TeX-command-default "LaTeX")
-  (TeX-run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'LaTeX-mode-hook)
-  (TeX-set-mode-name)
   (setq TeX-sentinel-default-function 'TeX-LaTeX-sentinel)
   (add-hook 'tool-bar-mode-on-hook 'LaTeX-maybe-install-toolbar)
+  (when (if (featurep 'xemacs) (featurep 'toolbar) tool-bar-mode)
+    (LaTeX-maybe-install-toolbar))
+  (TeX-run-mode-hooks 'text-mode-hook 'TeX-mode-hook 'LaTeX-mode-hook)
+  (TeX-set-mode-name)
   ;; Defeat filladapt
   (if (and (boundp 'filladapt-mode)
           filladapt-mode)


_______________________________________________
auctex-diffs mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to