From 05989cb9f0dbdf5fddd0dc24ec377b2d9a082743 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 19 Dec 2015 20:11:49 -0700 Subject: [PATCH] Make a variable buffer-local * lisp/generic-x.el (generic-rul-mode-setup-function): Make font-lock-syntax-table buffer-local. (Bug #21627) --- lisp/generic-x.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/generic-x.el b/lisp/generic-x.el index 38160fcc746..e5b4455d1f6 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el @@ -1315,7 +1315,7 @@ like an INI file. You can add this hook to `find-file-hook'." ;;; comment-start-skip "" ) ;; (set-syntax-table rul-generic-mode-syntax-table) - (setq font-lock-syntax-table rul-generic-mode-syntax-table)) + (setq-local font-lock-syntax-table rul-generic-mode-syntax-table)) ;; moved mode-definition behind defun-definition to be warning-free - 15.11.02/RSan (define-generic-mode rul-generic-mode -- 2.39.2