emacs-devel
[Top][All Lists]
Advanced

[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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]