bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5747: 24.0.50; Unstable C-mode indentation


From: Ari Roponen
Subject: bug#5747: 24.0.50; Unstable C-mode indentation
Date: Mon, 22 Mar 2010 14:03:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi,

> Would you please (all) try the following patch, which I'm hopeful will
> fix all the recent instabilities in CC Modes indentation.
>

this patch fixes the problem I reported. Thank you.

>
> *** cc-engine.el~     2010-03-22 11:15:40.248931952 +0000
> --- cc-engine.el      2010-03-22 11:24:04.981200984 +0000
> ***************
> *** 2624,2630 ****
>                          (< (point-max) c-state-old-cpp-end)))
>                 (point-max)
>               (min (point-max) c-state-old-cpp-beg)))
> !     (while (and c-state-cache (> (c-state-cache-top-lparen) upper-lim))
>         (setq c-state-cache (cdr c-state-cache)))
>       ;; If `upper-lim' is inside the last recorded brace pair, remove its
>       ;; RBrace and indicate we'll need to search backwards for a previous
> --- 2624,2630 ----
>                          (< (point-max) c-state-old-cpp-end)))
>                 (point-max)
>               (min (point-max) c-state-old-cpp-beg)))
> !     (while (and c-state-cache (>= (c-state-cache-top-lparen) upper-lim))
>         (setq c-state-cache (cdr c-state-cache)))
>       ;; If `upper-lim' is inside the last recorded brace pair, remove its
>       ;; RBrace and indicate we'll need to search backwards for a previous
>

-- 
Ari Roponen






reply via email to

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