diff options
| author | Lars Ingebrigtsen | 2016-04-29 22:44:13 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-04-29 22:44:13 +0200 |
| commit | 8f3a6de5e240910845594e079b2734a1acc1c25c (patch) | |
| tree | d175ce37b18d1b314597a81cc22d74aeb149fab0 | |
| parent | 2c3ab9b6e39a3d600e7d82deacc24effaec051bb (diff) | |
| download | emacs-8f3a6de5e240910845594e079b2734a1acc1c25c.tar.gz emacs-8f3a6de5e240910845594e079b2734a1acc1c25c.zip | |
Warning fix in jit-lock-mode
* lisp/jit-lock.el (jit-lock-mode): Don't issue a warning when
turning the mode on in an indirect buffer, if this somehow has
happened (bug#17738).
| -rw-r--r-- | lisp/jit-lock.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el index 810c2205160..c49fa6ed6c1 100644 --- a/lisp/jit-lock.el +++ b/lisp/jit-lock.el | |||
| @@ -195,9 +195,11 @@ the variable `jit-lock-stealth-nice'. | |||
| 195 | If you need to debug code run from jit-lock, see `jit-lock-debug-mode'." | 195 | If you need to debug code run from jit-lock, see `jit-lock-debug-mode'." |
| 196 | (setq jit-lock-mode arg) | 196 | (setq jit-lock-mode arg) |
| 197 | (cond | 197 | (cond |
| 198 | ((buffer-base-buffer) | 198 | ((and (buffer-base-buffer) |
| 199 | ;; We're in an indirect buffer. This doesn't work because jit-lock relies | 199 | jit-lock-mode) |
| 200 | ;; on the `fontified' text-property which is shared with the base buffer. | 200 | ;; We're in an indirect buffer, and we're turning the mode on. |
| 201 | ;; This doesn't work because jit-lock relies on the `fontified' | ||
| 202 | ;; text-property which is shared with the base buffer. | ||
| 201 | (setq jit-lock-mode nil) | 203 | (setq jit-lock-mode nil) |
| 202 | (message "Not enabling jit-lock: it does not work in indirect buffer")) | 204 | (message "Not enabling jit-lock: it does not work in indirect buffer")) |
| 203 | 205 | ||