diff options
| author | Simon Marshall | 1997-11-26 14:42:37 +0000 |
|---|---|---|
| committer | Simon Marshall | 1997-11-26 14:42:37 +0000 |
| commit | 63d5226e1edf5563a239cc10d4f2b409cc9d882d (patch) | |
| tree | 3f74ddf572e7ac73f445c12f03568ef5b1f2b81b | |
| parent | 4c17871f152cd4e820ff1403e59cf6101ea88532 (diff) | |
| download | emacs-63d5226e1edf5563a239cc10d4f2b409cc9d882d.tar.gz emacs-63d5226e1edf5563a239cc10d4f2b409cc9d882d.zip | |
Only use syntactic keywords if non-nil.
| -rw-r--r-- | lisp/fast-lock.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/fast-lock.el b/lisp/fast-lock.el index 967468cfde8..0268a1ecad3 100644 --- a/lisp/fast-lock.el +++ b/lisp/fast-lock.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Simon Marshall <simon@gnu.ai.mit.edu> | 5 | ;; Author: Simon Marshall <simon@gnu.ai.mit.edu> |
| 6 | ;; Keywords: faces files | 6 | ;; Keywords: faces files |
| 7 | ;; Version: 3.12.03 | 7 | ;; Version: 3.13 |
| 8 | 8 | ||
| 9 | ;;; This file is part of GNU Emacs. | 9 | ;;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -219,7 +219,7 @@ | |||
| 219 | ; "Submit via mail a bug report on fast-lock.el." | 219 | ; "Submit via mail a bug report on fast-lock.el." |
| 220 | ; (interactive) | 220 | ; (interactive) |
| 221 | ; (let ((reporter-prompt-for-summary-p t)) | 221 | ; (let ((reporter-prompt-for-summary-p t)) |
| 222 | ; (reporter-submit-bug-report "simon@gnu.ai.mit.edu" "fast-lock 3.12.03" | 222 | ; (reporter-submit-bug-report "simon@gnu.ai.mit.edu" "fast-lock 3.13" |
| 223 | ; '(fast-lock-cache-directories fast-lock-minimum-size | 223 | ; '(fast-lock-cache-directories fast-lock-minimum-size |
| 224 | ; fast-lock-save-others fast-lock-save-events fast-lock-save-faces | 224 | ; fast-lock-save-others fast-lock-save-events fast-lock-save-faces |
| 225 | ; fast-lock-verbose) | 225 | ; fast-lock-verbose) |
| @@ -592,11 +592,12 @@ See `fast-lock-cache-directory'." | |||
| 592 | (setq font-lock-syntactic-keywords (font-lock-eval-keywords | 592 | (setq font-lock-syntactic-keywords (font-lock-eval-keywords |
| 593 | font-lock-syntactic-keywords)) | 593 | font-lock-syntactic-keywords)) |
| 594 | ;; Compile all keywords in case some are and some aren't. | 594 | ;; Compile all keywords in case some are and some aren't. |
| 595 | (setq font-lock-syntactic-keywords (font-lock-compile-keywords | 595 | (when font-lock-syntactic-keywords |
| 596 | font-lock-syntactic-keywords) | 596 | (setq font-lock-syntactic-keywords (font-lock-compile-keywords |
| 597 | syntactic-keywords (font-lock-compile-keywords syntactic-keywords) | 597 | font-lock-syntactic-keywords))) |
| 598 | 598 | (when syntactic-keywords | |
| 599 | font-lock-keywords (font-lock-compile-keywords font-lock-keywords) | 599 | (setq syntactic-keywords (font-lock-compile-keywords syntactic-keywords))) |
| 600 | (setq font-lock-keywords (font-lock-compile-keywords font-lock-keywords) | ||
| 600 | keywords (font-lock-compile-keywords keywords)) | 601 | keywords (font-lock-compile-keywords keywords)) |
| 601 | ;; Use the Font Lock cache SYNTACTIC-PROPERTIES and FACE-PROPERTIES if we're | 602 | ;; Use the Font Lock cache SYNTACTIC-PROPERTIES and FACE-PROPERTIES if we're |
| 602 | ;; using cache VERSION format 3, the current buffer's file timestamp matches | 603 | ;; using cache VERSION format 3, the current buffer's file timestamp matches |