Index: auctex/tex-site.el.in
diff -u auctex/tex-site.el.in:1.21 auctex/tex-site.el.in:1.22
--- auctex/tex-site.el.in:1.21  Thu Apr 28 05:10:24 2005
+++ auctex/tex-site.el.in       Thu Apr 28 17:30:00 2005
@@ -65,12 +65,12 @@
   :type 'directory)
 
 (defconst TeX-mode-alist
-  "Alist of built-in TeX modes and their load files."
   '((tex-mode . tex-mode)
     (plain-tex-mode . tex-mode)
     (texinfo-mode . texinfo-mode)
     (latex-mode . tex-mode)
-    (doctex-mode . tex-mode)))
+    (doctex-mode . tex-mode))
+  "Alist of built-in TeX modes and their load files.")
 
 (defun TeX-modes-set (var value &optional update)
   "Set VAR (which should be `TeX-modes') to VALUE.
@@ -85,7 +85,8 @@
     (while list
       (setq elt (car (pop list)))
       (when (or update (null (get elt 'tex-saved)))
-       (put elt 'tex-saved (symbol-function elt)))
+       (when (fboundp elt)
+         (put elt 'tex-saved (symbol-function elt))))
       (fset elt
            (if (memq elt value)
                (intern (concat "TeX-" (symbol-name elt)))


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

Reply via email to