emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex b13bebb 28/67: Remove compatibility code for old


From: Tassilo Horn
Subject: [elpa] externals/auctex b13bebb 28/67: Remove compatibility code for older emacsen
Date: Fri, 8 Feb 2019 11:40:34 -0500 (EST)

branch: externals/auctex
commit b13bebb2e565f88edffea9830056f86130973265
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>

    Remove compatibility code for older emacsen
    
    * font-latex.el (font-latex-after-hacking-local-variables): Remove
    fallback code for case `file-local-variables-alist' isn't available.
---
 font-latex.el | 29 ++++++++---------------------
 1 file changed, 8 insertions(+), 21 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index 3640083..6d07ba8 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1383,27 +1383,14 @@ modified.  Such variables include
 `LaTeX-verbatim-environments-local',
 `LaTeX-verbatim-macros-with-braces-local',
 `LaTeX-verbatim-macros-with-delims-local'."
-  (when (if (boundp 'file-local-variables-alist)
-           ;; In Emacs we know if the value came from file or directory
-           ;; locals.  Note to self: directory-local variables are also added
-           ;; to file-local-variables-alist.
-           (let ((hacked-local-vars (mapcar #'car file-local-variables-alist)))
-             (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars)
-                 (memq 'LaTeX-verbatim-macros-with-braces-local 
hacked-local-vars)
-                 (memq 'LaTeX-verbatim-macros-with-delims-local 
hacked-local-vars)))
-         ;; In XEmacs and old Emacs versions we don't know if a buffer-local
-         ;; variable has been set by a file-local variables block or somehow
-         ;; else.  So we trigger a refresh if any of those variables has a
-         ;; non-nil local binding.
-         (or (and LaTeX-verbatim-environments-local
-                  (local-variable-p LaTeX-verbatim-environments-local
-                                    (current-buffer)))
-             (and LaTeX-verbatim-macros-with-braces-local
-                  (local-variable-p LaTeX-verbatim-macros-with-braces-local
-                                    (current-buffer)))
-             (and LaTeX-verbatim-macros-with-delims-local
-                  (local-variable-p LaTeX-verbatim-macros-with-delims-local
-                                    (current-buffer)))))
+  (when
+      ;; In Emacs we know if the value came from file or directory
+      ;; locals.  Note to self: directory-local variables are also added
+      ;; to file-local-variables-alist.
+      (let ((hacked-local-vars (mapcar #'car file-local-variables-alist)))
+       (or (memq 'LaTeX-verbatim-environments-local hacked-local-vars)
+           (memq 'LaTeX-verbatim-macros-with-braces-local hacked-local-vars)
+           (memq 'LaTeX-verbatim-macros-with-delims-local hacked-local-vars)))
     ;; Ok, we need to refresh fontification.
     (font-latex-update-font-lock t)))
 



reply via email to

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