mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-26 19:18:50 +00:00
Emulate interactive mode
* test/lisp/jit-lock-tests.el (jit-lock-tests--setup-buffer) (jit-lock-does-not-refontify-unnecessarily): Bind noninteractive to nil (bug#23278).
This commit is contained in:
parent
e2f785991d
commit
80bea210ff
@ -28,7 +28,8 @@
|
||||
|
||||
(defun jit-lock-tests--setup-buffer ()
|
||||
(setq font-lock-defaults '(nil t))
|
||||
(font-lock-mode))
|
||||
(let (noninteractive)
|
||||
(font-lock-mode)))
|
||||
|
||||
(ert-deftest jit-lock-fontify-now-fontifies-a-new-buffer ()
|
||||
(ert-with-test-buffer (:name "xxx")
|
||||
@ -51,7 +52,8 @@
|
||||
(ert-with-test-buffer (:name "xxx")
|
||||
(setq font-lock-defaults
|
||||
(list '(((lambda () (error "Don't call me")))) t))
|
||||
(font-lock-mode)
|
||||
(let (noninteractive)
|
||||
(font-lock-mode))
|
||||
(insert "aaa")
|
||||
(with-silent-modifications
|
||||
(put-text-property (point-min) (point-max) 'fontified t))
|
||||
|
Loading…
Reference in New Issue
Block a user