[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex cebf8cc 16/62: Enable lexical-bin
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex cebf8cc 16/62: Enable lexical-binding for texmathp.el |
Date: |
Sun, 20 Dec 2020 10:39:54 -0500 (EST) |
branch: externals/auctex
commit cebf8cc1e534d6fa5e883b5a874a6a37e32a9b88
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
Enable lexical-binding for texmathp.el
* texmathp.el (texmathp-compile): Use `push' on places rather than `set' and
`symbol-value' on locals partly pointing to symbols naming globals.
---
texmathp.el | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/texmathp.el b/texmathp.el
index 733f639..37658f3 100644
--- a/texmathp.el
+++ b/texmathp.el
@@ -1,4 +1,4 @@
-;;; texmathp.el -- Code to check if point is inside LaTeX math environment
+;;; texmathp.el -- Code to check if point is inside LaTeX math environment
-*- lexical-binding: t; -*-
;; Copyright (C) 1998, 2004, 2017, 2020 Free Software Foundation, Inc.
@@ -181,15 +181,14 @@ customize (customize calls it when setting the variable)."
(setq texmathp-tex-commands1 (append texmathp-tex-commands
texmathp-tex-commands-default))
(let ((list (reverse texmathp-tex-commands1))
- var entry type switches togglers)
+ entry type switches togglers)
(while (setq entry (car list))
(setq type (nth 1 entry)
- list (cdr list)
- var (cond ((memq type '(env-on env-off)) 'texmathp-environments)
- ((memq type '(arg-on arg-off)) 'texmathp-macros)
- ((memq type '(sw-on sw-off)) 'switches)
- ((memq type '(sw-toggle)) 'togglers)))
- (set var (cons (car entry) (symbol-value var))))
+ list (cdr list))
+ (cond ((memq type '(env-on env-off)) (push (car entry)
texmathp-environments))
+ ((memq type '(arg-on arg-off)) (push (car entry) texmathp-macros))
+ ((memq type '(sw-on sw-off)) (push (car entry) switches))
+ ((memq type '(sw-toggle)) (push (car entry) togglers))))
(setq texmathp-onoff-regexp
(concat "\\(?:[^\\]\\|\\`\\)"
(regexp-opt switches t))
- [AUCTeX-diffs] [elpa] externals/auctex 858e6dc 35/62: ; Fix more byte-compiler warnings, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 858e6dc 35/62: ; Fix more byte-compiler warnings, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex b5b29a8 55/62: ; Remove duplicate require's of tex.el, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex a92fe0b 59/62: Add new style/scholax.el, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex 92de017 53/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex ec263fc 54/62: ; Fix byte-compile warnings, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex eb40d5e 57/62: ; Fix doc string, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex 3db4ed7 58/62: ; * tex-bar.el: Enable lexical binding., Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex 352de40 50/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex 8afd11e 03/62: ; Silence the compiler, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex e9af4f1 14/62: * style/fancyvrb.el: Replace dynamically bound `optional'., Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex cebf8cc 16/62: Enable lexical-binding for texmathp.el,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 4c1430a 20/62: Add new style/appendix.el, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex bf30c11 05/62: Make "%o" compatible again with file name with spaces, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex b41e063 62/62: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex fc037de 44/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex 6f232c3 52/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex ced4b1a 10/62: Adapt styles to lexical-binding, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex bacae01 45/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex e8528e0 56/62: Update style/subfiles.el to package version 2.1, Tassilo Horn, 2020/12/20
- [AUCTeX-diffs] [elpa] externals/auctex a5c2dd9 61/62: Document lexical binding changes., Tassilo Horn, 2020/12/20