[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1756: awk-mode: An empty line is not a paragraph separator (should b
From: |
Alan Mackenzie |
Subject: |
bug#1756: awk-mode: An empty line is not a paragraph separator (should be) |
Date: |
Mon, 5 Jan 2009 18:35:02 +0000 |
User-agent: |
Mutt/1.5.9i |
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).