changeset 35932:2b3447fcf42b

(makefile-mode): Set SYNTAX-BEGIN member of `font-lock-defaults' to `backward-paragraph' rather than nil.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 06 Feb 2001 17:08:19 +0000
parents ccc41398da84
children aaa77bbf7d8b
files lisp/progmodes/make-mode.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/make-mode.el	Tue Feb 06 16:41:43 2001 +0000
+++ b/lisp/progmodes/make-mode.el	Tue Feb 06 17:08:19 2001 +0000
@@ -587,7 +587,11 @@
 
   ;; 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)