[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex cebf8cc 16/62: Enable lexical-binding for texmat
From: |
Tassilo Horn |
Subject: |
[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))
- [elpa] externals/auctex 3fa1baa 32/62: ; Improve dynvars check, (continued)
- [elpa] externals/auctex 3fa1baa 32/62: ; Improve dynvars check, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex f1f71c2 36/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 70dc031 38/62: ; Fix more byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex fc037de 44/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 471748b 46/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex a3510c7 51/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 6f232c3 52/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 7d87b2a 39/62: ; Fix more byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex dabe30c 02/62: Arrange test condition, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 2b9b3a8 09/62: Enable lexical-binding in all style files., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex cebf8cc 16/62: Enable lexical-binding for texmathp.el,
Tassilo Horn <=
- [elpa] externals/auctex c4583f0 15/62: ; * tests/tex/command-expansion.el: Update copyright year., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex c3b76ca 18/62: * tex-ispell.el: Enable lexical-binding., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 237f409 26/62: ; Suppress warning about obsolete inactivate-input-method, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 7288b93 31/62: Merge branch 'my-fix' into master, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 5c28751 33/62: ; Fix some byte-compiler warnings, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex b8c2bef 34/62: ; Fix byte-compiler warnings in latex.el, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 3982971 37/62: Rename LaTeX-dialect to TeX-dialect., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 54b40b3 40/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 45d9b8d 41/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex cbfa1db 43/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20