(nroff-mode): Set the SYNTAX-BEGIN part

of font-lock-defaults to backward-paragraph.
This commit is contained in:
Eli Zaretskii 2001-02-05 13:30:45 +00:00
parent e89aaabdcb
commit e6297e7db4
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-02-05 Eli Zaretskii <eliz@is.elta.co.il>
* textmodes/nroff-mode.el (nroff-mode): Set the SYNTAX-BEGIN part
of font-lock-defaults to backward-paragraph.
2001-02-05 Gerd Moellmann <gerd@gnu.org>
* mail/rmail.el (rmail-ignored-headers): Add X-Trace,

View file

@ -113,7 +113,11 @@ closing requests for requests that are used in matched pairs."
(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)