GNU bug report logs -
#5747
24.0.50; Unstable C-mode indentation
Previous Next
Reported by: Ari Roponen <ari.roponen <at> gmail.com>
Date: Sun, 21 Mar 2010 13:31:02 UTC
Severity: normal
Merged with 5741
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 5747 <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 15 years and 116 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.