mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-29 11:02:01 +00:00
(nroff-mode): Avoid auto-filling on directive lines.
This commit is contained in:
parent
c49bd3f70e
commit
a22be623d5
@ -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]*")
|
||||
|
Loading…
Reference in New Issue
Block a user