]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable.
authorGlenn Morris <rgm@gnu.org>
Fri, 15 Dec 2017 06:01:32 +0000 (22:01 -0800)
committerGlenn Morris <rgm@gnu.org>
Fri, 15 Dec 2017 06:01:32 +0000 (22:01 -0800)
lisp/textmodes/tex-mode.el

index f228e28b74055a0ecfa3360111a40e2f48ebaaaa..432a779b4a8f00911be16c3735c321b267e93068 100644 (file)
@@ -1014,9 +1014,10 @@ Inherits `shell-mode-map' with a few additions.")
 ;; This is a) ugly, and b) cheating, but this was the last
 ;; remaining warning from byte-compiling all of Emacs...
 (eval-when-compile
-  (setq byte-compile-function-environment
-       (delq (assq 'tex-mode byte-compile-function-environment)
-             byte-compile-function-environment)))
+  (if (boundp 'byte-compile-function-environment)
+      (setq byte-compile-function-environment
+            (delq (assq 'tex-mode byte-compile-function-environment)
+                  byte-compile-function-environment))))
 
 ;;;###autoload
 (defun tex-mode ()