aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-02-05 13:30:45 +0000
committerEli Zaretskii2001-02-05 13:30:45 +0000
commite6297e7db4c610ebeecc45903e562e506152e8ce (patch)
tree61e4aca101c9f4d0c90cbb4a6a7c62e1b7ca5f55
parente89aaabdcb8f815c65ac67987670e054088c701d (diff)
downloademacs-e6297e7db4c610ebeecc45903e562e506152e8ce.tar.gz
emacs-e6297e7db4c610ebeecc45903e562e506152e8ce.zip
(nroff-mode): Set the SYNTAX-BEGIN part
of font-lock-defaults to backward-paragraph.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/nroff-mode.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8bebc34bd20..f8960dd6a80 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-02-05 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * textmodes/nroff-mode.el (nroff-mode): Set the SYNTAX-BEGIN part
4 of font-lock-defaults to backward-paragraph.
5
12001-02-05 Gerd Moellmann <gerd@gnu.org> 62001-02-05 Gerd Moellmann <gerd@gnu.org>
2 7
3 * mail/rmail.el (rmail-ignored-headers): Add X-Trace, 8 * mail/rmail.el (rmail-ignored-headers): Add X-Trace,
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index 8bd53920823..07cf36a31cf 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -113,7 +113,11 @@ closing requests for requests that are used in matched pairs."
113 (modify-syntax-entry ?\n "> 1" nroff-mode-syntax-table)) 113 (modify-syntax-entry ?\n "> 1" nroff-mode-syntax-table))
114 (set-syntax-table nroff-mode-syntax-table) 114 (set-syntax-table nroff-mode-syntax-table)
115 (make-local-variable 'font-lock-defaults) 115 (make-local-variable 'font-lock-defaults)
116 (setq font-lock-defaults '(nroff-font-lock-keywords nil t)) 116 (setq font-lock-defaults
117 ;; SYNTAX-BEGIN is set to backward-paragraph to avoid slow-down
118 ;; near the end of large buffers due to searching to buffer's
119 ;; beginning.
120 '(nroff-font-lock-keywords nil t nil backward-paragraph))
117 (setq local-abbrev-table nroff-mode-abbrev-table) 121 (setq local-abbrev-table nroff-mode-abbrev-table)
118 (make-local-variable 'nroff-electric-mode) 122 (make-local-variable 'nroff-electric-mode)
119 (setq nroff-electric-mode nil) 123 (setq nroff-electric-mode nil)