[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e0fb3413 04/10: Prefer `setq-local' in font-latex.el
From: |
Arash Esbati |
Subject: |
master e0fb3413 04/10: Prefer `setq-local' in font-latex.el |
Date: |
Wed, 26 Jun 2024 09:48:00 -0400 (EDT) |
branch: master
commit e0fb3413dbecab4d4b30ffac67a4d33778494957
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Prefer `setq-local' in font-latex.el
* font-latex.el (font-latex-add-to-syntax-alist)
(font-latex-setup): Prefer `setq-local' over `set' and
`make-local-variable' combination.
---
font-latex.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index d814642a..0307cd10 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1297,8 +1297,8 @@ The entries are added to `font-latex-syntax-alist' and
eventually
end up in `font-lock-defaults'. Each entry in LIST should be a
cons pair as expected by `font-lock-defaults'. The function also
triggers Font Lock to recognize the change."
- (set (make-local-variable 'font-latex-syntax-alist)
- (append font-latex-syntax-alist list))
+ (setq-local font-latex-syntax-alist
+ (append font-latex-syntax-alist list))
;; We modify the `font-lock-syntax-table' directly but also call
;; `font-latex-setup' in order to have `font-lock-defaults' be in sync.
(font-latex-setup)
@@ -1321,7 +1321,7 @@ triggers Font Lock to recognize the change."
(font-latex-set-syntactic-keywords)
;; Activate multi-line fontification facilities.
- (set (make-local-variable 'font-lock-multiline) t)
+ (setq-local font-lock-multiline t)
;; The test for `major-mode' currently only works with docTeX mode
;; because `TeX-install-font-lock' is called explicitly in
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master e0fb3413 04/10: Prefer `setq-local' in font-latex.el,
Arash Esbati <=