diff options
| author | Chong Yidong | 2008-08-20 22:23:06 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-08-20 22:23:06 +0000 |
| commit | a22be623d57e070f9ac671b15e478d6cd69d5708 (patch) | |
| tree | 4a8c579f279d7de101c236b8c0d13283ef99b48b | |
| parent | c49bd3f70e9c5a6ef0a0b34de0ecde3f2c8796e4 (diff) | |
| download | emacs-a22be623d57e070f9ac671b15e478d6cd69d5708.tar.gz emacs-a22be623d57e070f9ac671b15e478d6cd69d5708.zip | |
(nroff-mode): Avoid auto-filling on directive lines.
| -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 81979fb0c35..8a068fe2a48 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." | |||
| 144 | (concat "[.']\\|" paragraph-start)) | 144 | (concat "[.']\\|" paragraph-start)) |
| 145 | (set (make-local-variable 'paragraph-separate) | 145 | (set (make-local-variable 'paragraph-separate) |
| 146 | (concat "[.']\\|" paragraph-separate)) | 146 | (concat "[.']\\|" paragraph-separate)) |
| 147 | ;; Don't auto-fill directive lines starting . or ' since they normally | ||
| 148 | ;; have to be one line. But do auto-fill comments .\" .\# and '''. | ||
| 149 | ;; Comment directives (those starting . or ') are [.'][ \t]*\\[#"] | ||
| 150 | ;; or ''', and this regexp is everything except those. So [.'] | ||
| 151 | ;; followed by not backslash and not ' or followed by backslash but | ||
| 152 | ;; then not # or " | ||
| 153 | (set (make-local-variable 'auto-fill-inhibit-regexp) | ||
| 154 | "[.'][ \t]*\\([^ \t\\']\\|\\\\[^#\"]\\)") | ||
| 147 | ;; comment syntax added by mit-erl!gildea 18 Apr 86 | 155 | ;; comment syntax added by mit-erl!gildea 18 Apr 86 |
| 148 | (set (make-local-variable 'comment-start) "\\\" ") | 156 | (set (make-local-variable 'comment-start) "\\\" ") |
| 149 | (set (make-local-variable 'comment-start-skip) "\\\\[\"#][ \t]*") | 157 | (set (make-local-variable 'comment-start-skip) "\\\\[\"#][ \t]*") |