GNU bug report logs - #55230
CC Mode 5.35.1 (C++//l); Cache inconsistency

Previous Next

Package: cc-mode;

Reported by: Michael Welsh Duggan <mwd <at> md5i.com>

Date: Mon, 2 May 2022 19:31:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Alan Mackenzie <acm <at> muc.de>
To: Michael Welsh Duggan <mwd <at> md5i.com>
Cc: 55230 <at> debbugs.gnu.org
Subject: Re: bug#55230: CC Mode 5.35.1 (C++//l); Cache inconsistency
Date: Sat, 21 May 2022 10:03:10 +0000
[Message part 1 (text/plain, inline)]
Hello, Michael.

On Thu, May 19, 2022 at 00:24:18 -0400, Michael Welsh Duggan wrote:

> Unfortunately, it [the patch] has some major problems.  If you follow
> the original recipe, after the first brace is input cc-mode errors out
> with "Marker does not point anywhere".  Backtrace follows:

> Debugger entered--Lisp error: (error "Marker does not point anywhere")
>   c-restore-string-fences()
>   c-electric-brace(nil)
>   funcall-interactively(c-electric-brace nil)
>   command-execute(c-electric-brace)

Apologies for that.  I had failed to test the scenario from a freshly
started Emacs.  The problem was setting and clearing text properties
without masking before-change-functions and after-change-functions.
This allowed a recursive call to these text property functions which
fouled things up.

This is now corrected.  Please undo the previous faulty patch and apply
the one in this post instead.  I think it should have fixed the bug.
Thanks!  I look forward to hearing from you again.

> >> > Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0)
> >> >  of 2022-04-09
> >> > Package: CC Mode 5.35.1 (C++//l)
> >> > Buffer Style: gnu
> >> > c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties 1-bit)

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

-- 
Alan Mackenzie (Nuremberg, Germany).

[diff.20220520.diff (text/plain, attachment)]

This bug report was last modified 2 years and 363 days ago.

Previous Next


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