unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Teemu Likonen <tlikonen@iki.fi>, 1756@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#1756: awk-mode: An empty line is not a paragraph separator (should be)
Date: Mon, 5 Jan 2009 18:35:02 +0000	[thread overview]
Message-ID: <20090105183502.GC2501@muc.de> (raw)
In-Reply-To: <87sko35t3u.fsf@iki.fi>

Hi again, Teemu!

On Thu, Jan 01, 2009 at 10:27:17AM +0200, Teemu Likonen wrote:

[ .... ]

> There is another and related bug. It is possible to configure the
> comment prefix regexp with the option c-comment-prefix-regexp. But the
> problem is that the option only takes effect when awk-mode is turned
> on.  If user later changes indentation style with the command
> c-set-style (bound to C-c .) then it seems that the hard-coded default
> (#+) takes preference over user's c-comment-prefix-regexp settings.

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.

-- 
Alan Mackenzie (Nuremberg, Germany).







  parent reply	other threads:[~2009-01-05 18:35 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 [this message]
2009-01-05 18:38   ` Teemu Likonen
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=20090105183502.GC2501@muc.de \
    --to=acm@muc.de \
    --cc=1756@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=tlikonen@iki.fi \
    /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).