emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 c2a88ec: * lisp/textmodes/tex-mode.el: Ensure unc


From: Glenn Morris
Subject: [Emacs-diffs] emacs-26 c2a88ec: * lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable.
Date: Fri, 15 Dec 2017 01:01:40 -0500 (EST)

branch: emacs-26
commit c2a88ec8e8f3246c0f5051b208337205f7f96cca
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    * lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable.
---
 lisp/textmodes/tex-mode.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index f228e28..432a779 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]