aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorEli Zaretskii2001-02-05 13:30:45 +0000
committerEli Zaretskii2001-02-05 13:30:45 +0000
commite6297e7db4c610ebeecc45903e562e506152e8ce (patch)
tree61e4aca101c9f4d0c90cbb4a6a7c62e1b7ca5f55 /lisp/textmodes
parente89aaabdcb8f815c65ac67987670e054088c701d (diff)
downloademacs-e6297e7db4c610ebeecc45903e562e506152e8ce.tar.gz
emacs-e6297e7db4c610ebeecc45903e562e506152e8ce.zip
(nroff-mode): Set the SYNTAX-BEGIN part
of font-lock-defaults to backward-paragraph.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/nroff-mode.el6
1 files changed, 5 insertions, 1 deletions
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)