emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/nroff-mode.el,v


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/nroff-mode.el,v
Date: Wed, 20 Aug 2008 22:23:07 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/08/20 22:23:07

Index: nroff-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/textmodes/nroff-mode.el,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- nroff-mode.el       6 May 2008 04:33:08 -0000       1.40
+++ nroff-mode.el       20 Aug 2008 22:23:06 -0000      1.41
@@ -144,6 +144,14 @@
        (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]*")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]