*** nroff-mode.el 14 Sep 2007 10:50:21 +1000 1.35 --- nroff-mode.el 12 Oct 2007 10:51:35 +1000 *************** *** 127,132 **** --- 127,141 ---- (concat "[.']\\|" paragraph-start)) (set (make-local-variable 'paragraph-separate) (concat "[.']\\|" paragraph-separate)) + + ;; Don't auto-fill directives, since they normally have to be one line, + ;; but do auto-fill comments .\" .\# and ''' + ;; Comment directive pattern would be [.'][ \t]*[\\][#"], and this regexp + ;; is everything other than that, so not a backslash (and not a '' as in + ;; '''), or a 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]*")