diff options
| author | Eli Zaretskii | 2001-02-06 17:10:29 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-02-06 17:10:29 +0000 |
| commit | c7ca58df3bc4e9fa080af6f22da1e6b4bd311b61 (patch) | |
| tree | b1c11ffd340ac5e8cfb73cb3404ce9c3ca811fe5 /lisp/progmodes | |
| parent | b03b1ad2b04b9554465762aa3903425fc075c2ce (diff) | |
| download | emacs-c7ca58df3bc4e9fa080af6f22da1e6b4bd311b61.tar.gz emacs-c7ca58df3bc4e9fa080af6f22da1e6b4bd311b61.zip | |
(makefile-mode): Set SYNTAX-BEGIN member
of `font-lock-defaults' to `backward-paragraph' rather than nil.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/make-mode.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index adeec830ab4..72e2e863a76 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -587,7 +587,11 @@ makefile-special-targets-list: | |||
| 587 | 587 | ||
| 588 | ;; Font lock. | 588 | ;; Font lock. |
| 589 | (make-local-variable 'font-lock-defaults) | 589 | (make-local-variable 'font-lock-defaults) |
| 590 | (setq font-lock-defaults '(makefile-font-lock-keywords)) | 590 | (setq font-lock-defaults |
| 591 | ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down | ||
| 592 | ;; near the end of a large buffer, due to parse-partial-sexp's | ||
| 593 | ;; trying to parse all the way till the beginning of buffer. | ||
| 594 | '(makefile-font-lock-keywords nil nil nil backward-paragraph)) | ||
| 591 | 595 | ||
| 592 | ;; Add-log. | 596 | ;; Add-log. |
| 593 | (make-local-variable 'add-log-current-defun-function) | 597 | (make-local-variable 'add-log-current-defun-function) |