From: Teemu Likonen <tlikonen@iki.fi>
To: Alan Mackenzie <acm@muc.de>
Cc: bug-gnu-emacs@gnu.org, 1756@emacsbugs.donarmstrong.com
Subject: bug#1756: awk-mode: An empty line is not a paragraph separator (should be)
Date: Mon, 05 Jan 2009 20:38:05 +0200 [thread overview]
Message-ID: <87hc4dbnua.fsf@iki.fi> (raw)
In-Reply-To: <20090105183502.GC2501@muc.de> (Alan Mackenzie's message of "Mon\, 5 Jan 2009 18\:35\:02 +0000")
Alan Mackenzie (2009-01-05 18:35 +0000) wrote:
> Can you give me precise recipe to reproduce this, please. It worked OK
> for me when I tried it. When I did the following:
>
> (i) M-: (setcdr (cadr c-comment-prefix-regexp) "#*") ; Changes the entry
> ; from (awk . "#+") to (awk . "#*")
> (ii) C-c . <CR> awk ; from within an AWK buffer
>
> , M-: paragraph-start gave me "[ \t]*\\(#*\\)[ \t]*$\\|^\f"
> ^^
> which has incorporated the new value from c-comment-prefix-regexp.
I can reproduce it by setting c-comment-prefix-regexp through the
customize system:
M-x customize-option RET c-comment-prefix-regexp RET
Select "Override style settings" and "Mode-specific regexps". Type #* to
the AWK string and save the settings. Now, when I do "M-x awk-mode" I
get this paragraph-start:
"[ \t]*\\(#*\\)[ \t]*$\\|^\f"
After "C-c . awk RET" it changes to this:
"[ \t]*\\(\\(#+\\)[ \t]*\\)?$\\|^\f"
Even though I chose to override the style settings "#*" changes to "#+".
I have your previous patch applied so there is this additional
subexpression level "\(...\)?" too.
next prev parent reply other threads:[~2009-01-05 18:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-01 8:27 bug#1756: awk-mode: An empty line is not a paragraph separator (should be) Teemu Likonen
2009-01-05 16:12 ` Alan Mackenzie
2009-01-05 17:53 ` Teemu Likonen
2009-01-05 18:35 ` Alan Mackenzie
2009-01-05 18:38 ` Teemu Likonen [this message]
2009-01-06 16:15 ` Alan Mackenzie
2009-01-07 16:32 ` Teemu Likonen
2009-01-08 16:25 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hc4dbnua.fsf@iki.fi \
--to=tlikonen@iki.fi \
--cc=1756@emacsbugs.donarmstrong.com \
--cc=acm@muc.de \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).