changeset 35895:3fb24c8e721b

(nroff-mode): Set the SYNTAX-BEGIN part of font-lock-defaults to backward-paragraph.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 05 Feb 2001 13:29:38 +0000
parents 929f95a3bf33
children 7f7981bbc76e
files lisp/textmodes/nroff-mode.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/nroff-mode.el	Mon Feb 05 13:02:51 2001 +0000
+++ b/lisp/textmodes/nroff-mode.el	Mon Feb 05 13:29:38 2001 +0000
@@ -113,7 +113,11 @@
     (modify-syntax-entry ?\n ">  1" nroff-mode-syntax-table))
   (set-syntax-table nroff-mode-syntax-table)
   (make-local-variable 'font-lock-defaults)
-  (setq font-lock-defaults '(nroff-font-lock-keywords nil t))
+  (setq font-lock-defaults
+	;; SYNTAX-BEGIN is set to backward-paragraph to avoid slow-down
+	;; near the end of large buffers due to searching to buffer's
+	;; beginning.
+	'(nroff-font-lock-keywords nil t nil backward-paragraph))
   (setq local-abbrev-table nroff-mode-abbrev-table)
   (make-local-variable 'nroff-electric-mode)
   (setq nroff-electric-mode nil)