From: Tom Tromey Date: Sun, 20 Dec 2015 03:11:49 +0000 (-0700) Subject: Make a variable buffer-local X-Git-Tag: emacs-25.0.90~413 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=05989cb9f0dbdf5fddd0dc24ec377b2d9a082743;p=emacs.git Make a variable buffer-local * lisp/generic-x.el (generic-rul-mode-setup-function): Make font-lock-syntax-table buffer-local. (Bug #21627) --- 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