diff options
author | Chong Yidong <[email protected]> | 2008-08-20 22:23:06 +0000 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2008-08-20 22:23:06 +0000 |
commit | a22be623d57e070f9ac671b15e478d6cd69d5708 (patch) | |
tree | 4a8c579f279d7de101c236b8c0d13283ef99b48b /lisp/textmodes | |
parent | c49bd3f70e9c5a6ef0a0b34de0ecde3f2c8796e4 (diff) |
(nroff-mode): Avoid auto-filling on directive lines.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/nroff-mode.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el index 81979fb0c3..8a068fe2a4 100644 --- a/lisp/textmodes/nroff-mode.el +++ b/lisp/textmodes/nroff-mode.el @@ -144,6 +144,14 @@ closing requests for requests that are used in matched pairs." (concat "[.']\\|" paragraph-start)) (set (make-local-variable 'paragraph-separate) (concat "[.']\\|" paragraph-separate)) + ;; Don't auto-fill directive lines starting . or ' since they normally + ;; have to be one line. But do auto-fill comments .\" .\# and '''. + ;; Comment directives (those starting . or ') are [.'][ \t]*\\[#"] + ;; or ''', and this regexp is everything except those. So [.'] + ;; followed by not backslash and not ' or followed by backslash but + ;; then not # or " + (set (make-local-variable 'auto-fill-inhibit-regexp) + "[.'][ \t]*\\([^ \t\\']\\|\\\\[^#\"]\\)") ;; comment syntax added by mit-erl!gildea 18 Apr 86 (set (make-local-variable 'comment-start) "\\\" ") (set (make-local-variable 'comment-start-skip) "\\\\[\"#][ \t]*") |