GNU bug report logs - #7930
24.0.50; Indentation problem in C-mode

Previous Next

Packages: emacs, cc-mode;

Reported by: Michael Welsh Duggan <mwd <at> cert.org>

Date: Thu, 27 Jan 2011 18:55:01 UTC

Severity: normal

Found in version 24.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 7930 <at> debbugs.gnu.org (full text, mbox):

From: Michael Welsh Duggan <md5i <at> md5i.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 7930 <at> debbugs.gnu.org, Michael Welsh Duggan <mwd <at> cert.org>
Subject: Re: bug#7930: Forgot to include the file
Date: Sun, 20 Feb 2011 14:19:35 -0500
Alan Mackenzie <acm <at> muc.de> writes:

> Here's a patch for the bug.  Would you please try it out and let me know
> it's OK.
>
> Thanks a lot for taking the trouble to pin this one down, and for
> reporting it in such a high quality fashion.  It was a nasty little bug
> caused by a mistaken tacit assumption in an internal CC Mode cache.
>
> The cache in question maintains a list of "safe" positions every ~10,000
> characters, and in your file position 10,001 was in the middle of a
> macro.  It transpires that inside a macro is NOT a safe position ;-(.

Yes, those five lines seem to do the trick.  Thank you very much for
tracking this down.  It seems like it was a fairly brutal piece of
debugging.

-- 
Michael Welsh Duggan
(md5i <at> md5i.com)




This bug report was last modified 14 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.