[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++
From: |
Alan Mackenzie |
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) |
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)
- CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Miles Bader, 2003/07/03
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++,
Alan Mackenzie <=
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Richard Stallman, 2003/07/06
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Alan Mackenzie, 2003/07/07
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Richard Stallman, 2003/07/08
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Stefan Monnier, 2003/07/08
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Miles Bader, 2003/07/08
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Martin Stjernholm, 2003/07/09
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Richard Stallman, 2003/07/09
- Re: CC Mode 5.30.1 (Message); new cc-awk mode indentation wrong after ++, Miles Bader, 2003/07/09