diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-12-08 08:57:22 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-12-08 08:57:22 +0100 |
commit | 3b20c0331693e915a3d52d1b99c570d9816db015 (patch) | |
tree | 14bdb7c1933a0ead5f07cda9921d66b480124cbc /test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el | |
parent | 9e7b93f2da8ef3676fb9923278ee1e721dfc17d9 (diff) | |
download | emacs-3b20c0331693e915a3d52d1b99c570d9816db015.tar.gz |
Prefer setq-local in tests
* test/lisp/allout-tests.el (allout-test-resumption-prior-value-resumed)
(allout-test-resumption-multiple-holds)
(allout-test-resumption-unbinding):
* test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el
(faceup-test-mode):
* test/lisp/epg-tests.el (with-epg-tests):
* test/src/data-tests.el (binding-test-buffer-A): Prefer setq-local.
Diffstat (limited to 'test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el')
-rw-r--r-- | test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el b/test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el index c77f2dc4990..6e9d50fc38f 100644 --- a/test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el +++ b/test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el @@ -67,8 +67,8 @@ If `prog-mode' is defined, inherit from it." (faceup-test-define-prog-mode faceup-test-mode "faceup-test" "Dummy major mode for testing `faceup', a test system for font-lock." - (set (make-local-variable 'syntax-propertize-function) - #'faceup-test-syntax-propertize) + (setq-local syntax-propertize-function + #'faceup-test-syntax-propertize) (setq font-lock-defaults '(faceup-test-font-lock-keywords nil))) (provide 'faceup-test-mode) |