branch: master commit 5e0db640620ca16f3470da53f2aac35e8e500365 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
Prefer `setq-local' in plain-tex.el * plain-tex.el (plain-TeX-common-initialization): Prefer `setq-local' over `set' and `make-local-variable' combination. --- plain-tex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plain-tex.el b/plain-tex.el index 9bd48eb3..8a92e8a7 100644 --- a/plain-tex.el +++ b/plain-tex.el @@ -172,7 +172,7 @@ Run after mode hooks and file local variables application." (defun plain-TeX-common-initialization () "Common initialization for plain TeX like modes." - (set (make-local-variable 'TeX-style-hook-dialect) plain-TeX-dialect) + (setq-local TeX-style-hook-dialect plain-TeX-dialect) (setq TeX-sentinel-default-function #'TeX-TeX-sentinel) (setq paragraph-start (concat