all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* awk-mode's paragraph separators don't match empty lines
@ 2008-12-30 17:29 Teemu Likonen
  0 siblings, 0 replies; only message in thread
From: Teemu Likonen @ 2008-12-30 17:29 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-30 17:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-30 17:29 awk-mode's paragraph separators don't match empty lines Teemu Likonen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.