From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++ Date: Sun, 6 Jul 2003 15:02:34 +0000 (GMT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1057503917 23782 80.91.224.249 (6 Jul 2003 15:05:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2003 15:05:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 06 17:05:15 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ZB4l-0006BG-00 for ; Sun, 06 Jul 2003 17:05:15 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ZBEB-0004yn-00 for ; Sun, 06 Jul 2003 17:14:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZB4G-00013q-1D for emacs-devel@quimby.gnus.org; Sun, 06 Jul 2003 11:04:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ZB3i-0000mF-P7 for emacs-devel@gnu.org; Sun, 06 Jul 2003 11:04:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ZB3F-0008Si-Lk for emacs-devel@gnu.org; Sun, 06 Jul 2003 11:03:43 -0400 Original-Received: from acm.muc.de ([193.149.49.134] helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ZB0S-0005Tj-OX; Sun, 06 Jul 2003 11:00:49 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id PAA01193; Sun, 6 Jul 2003 15:02:35 GMT X-Sender: root@acm.acm Original-To: Miles Bader In-Reply-To: Original-cc: bug-cc-mode@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15418 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15418 Hi, Miles! On 4 Jul 2003, Miles Bader wrote: >The new cc-awk mode seems to indent incorrectly on lines following a >suffix `++' operator, e.g., the following is indented by the new >awk-mode: > { > h++ > print "foo" > print "bar" > } The fix will appear in the upcoming version 5.30.3. Alternatively, apply the following patch to the cc-engine.el in 5.30.1: ************************************************************************* 512,515c512,514 < (c-backward-syntactic-ws) ; might go back an awk-mode virtual semicolon, here. < ; How about using c-awk-NL-prop for AWK Mode, here. < ; Something like c-awk-backward-syntactic-ws. < ; 2002/6/22. Doesn't matter! Leave it as it is. --- > (if (c-mode-is-new-awk-p) > (c-awk-backward-syntactic-ws) > (c-backward-syntactic-ws)) 823c822,824 < (c-backward-syntactic-ws) --- > (if (c-mode-is-new-awk-p) > (c-awk-backward-syntactic-ws) > (c-backward-syntactic-ws)) ************************************************************************* Many thanks for the bug report. >-Miles -- Alan Mackenzie (Munich, Germany)