From: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
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) [thread overview]
Message-ID: <Pine.LNX.3.96.1030706145449.179B-100000@acm.acm> (raw)
In-Reply-To: <buo65mjaxml.fsf@mcspd15.ucom.lsi.nec.co.jp>
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)
next prev parent reply other threads:[~2003-07-06 15:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-04 1:28 CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++ Miles Bader
2003-07-06 15:02 ` Alan Mackenzie [this message]
2003-07-07 3:39 ` Richard Stallman
2003-07-07 7:44 ` Alan Mackenzie
2003-07-08 14:28 ` Richard Stallman
2003-07-08 15:41 ` Stefan Monnier
2003-07-08 23:36 ` Miles Bader
2003-07-09 11:03 ` Martin Stjernholm
2003-07-09 23:47 ` Richard Stallman
2003-07-10 2:09 ` Miles Bader
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=Pine.LNX.3.96.1030706145449.179B-100000@acm.acm \
--to=acm@muc.de \
--cc=emacs-devel@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).