emacs-devel
[Top][All Lists]
Advanced

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

awk-mode's paragraph separators don't match empty lines


From: Teemu Likonen
Subject: awk-mode's paragraph separators don't match empty lines
Date: Tue, 30 Dec 2008 19:29:23 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

In awk-mode an empty line is not considered a paragraph separator, only
lines containing whitespace and # character(s) are. The value of both
paragraph-start and paragraph-separate are set as follows:

    "[ \t]*\\(#+\\)[ \t]*$\\|^\f"
              ^^

See, at least one # is required. I believe that the following patch is
at least part of the solution but perhaps also style settings need
adjusting. I don't know how to do that.


diff --git i/lisp/progmodes/cc-vars.el w/lisp/progmodes/cc-vars.el
index 18f314c..62c85f0 100644
--- i/lisp/progmodes/cc-vars.el
+++ w/lisp/progmodes/cc-vars.el
@@ -483,7 +483,7 @@ style comments."
 
 (defcustom-c-stylevar c-comment-prefix-regexp
   '((pike-mode . "//+!?\\|\\**")
-    (awk-mode . "#+")
+    (awk-mode . "#*")
     (other . "//+\\|\\**"))
   "*Regexp to match the line prefix inside comments.
 This regexp is used to recognize the fill prefix inside comments for




reply via email to

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