*** nroff-mode.el 08 May 2008 11:29:50 +1000 1.40 --- nroff-mode.el 18 Aug 2008 20:29:55 +1000 *************** *** 144,149 **** --- 144,160 ---- (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 a + ;; ''', 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]*")