From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#1756: awk-mode: An empty line is not a paragraph separator (should be) Date: Mon, 05 Jan 2009 20:38:05 +0200 Message-ID: <87hc4dbnua.fsf@iki.fi> References: <87sko35t3u.fsf@iki.fi> <20090105183502.GC2501@muc.de> Reply-To: Teemu Likonen , 1756@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231182225 18636 80.91.229.12 (5 Jan 2009 19:03:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 19:03:45 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 1756@emacsbugs.donarmstrong.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 20:04:55 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LJukr-0003OK-9x for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 20:04:49 +0100 Original-Received: from localhost ([127.0.0.1]:39162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJujc-0006wi-0Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 14:03:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJujZ-0006wU-C5 for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 14:03:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJujX-0006wC-CZ for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 14:03:29 -0500 Original-Received: from [199.232.76.173] (port=36419 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJujX-0006w7-7j for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 14:03:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35736) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJujW-0004Rs-J1 for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 14:03:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n05J3N9T032356; Mon, 5 Jan 2009 11:03:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n05Ij3IO027828; Mon, 5 Jan 2009 10:45:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Teemu Likonen Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Mon, 05 Jan 2009 18:45:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1756 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123118080026513 (code B ref -1); Mon, 05 Jan 2009 18:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jan 2009 18:40:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n05IdvpF026507 for ; Mon, 5 Jan 2009 10:39:58 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJuMn-0000mt-2Y for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 13:39:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJuMk-0000iw-Mi for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 13:39:56 -0500 Original-Received: from [199.232.76.173] (port=42956 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJuMk-0000it-Gc for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 13:39:54 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:57433 helo=jenni2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJuMj-0001VZ-Vk for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 13:39:54 -0500 Original-Received: from mithlond.arda.local (80.220.180.181) by jenni2.inet.fi (8.5.014) id 48FC5A880355BC94; Mon, 5 Jan 2009 20:38:52 +0200 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1LJuKz-0003Mz-9K; Mon, 05 Jan 2009 20:38:05 +0200 In-Reply-To: <20090105183502.GC2501@muc.de> (Alan Mackenzie's message of "Mon\, 5 Jan 2009 18\:35\:02 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 05 Jan 2009 14:03:28 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23799 Archived-At: 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 . 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.