summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-02-06 17:10:29 +0000
committerEli Zaretskii <eliz@gnu.org>2001-02-06 17:10:29 +0000
commitc7ca58df3bc4e9fa080af6f22da1e6b4bd311b61 (patch)
treeb1c11ffd340ac5e8cfb73cb3404ce9c3ca811fe5
parentb03b1ad2b04b9554465762aa3903425fc075c2ce (diff)
downloademacs-c7ca58df3bc4e9fa080af6f22da1e6b4bd311b61.tar.gz
(makefile-mode): Set SYNTAX-BEGIN member
of `font-lock-defaults' to `backward-paragraph' rather than nil.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/make-mode.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6a14d7e8256..f348ce0733b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-06 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * progmodes/make-mode.el (makefile-mode): Set SYNTAX-BEGIN member
+ of `font-lock-defaults' to `backward-paragraph' rather than nil.
+
2001-02-06 Andrew Innes <andrewi@gnu.org>
* makefile.w32-in (EMACS): Use $(THISDIR) to make emacs.exe path
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:
;; Font lock.
(make-local-variable 'font-lock-defaults)
- (setq font-lock-defaults '(makefile-font-lock-keywords))
+ (setq font-lock-defaults
+ ;; SYNTAX-BEGIN set to backward-paragraph to avoid slow-down
+ ;; near the end of a large buffer, due to parse-partial-sexp's
+ ;; trying to parse all the way till the beginning of buffer.
+ '(makefile-font-lock-keywords nil nil nil backward-paragraph))
;; Add-log.
(make-local-variable 'add-log-current-defun-function)