GNU bug report logs -
#70435
30.0.50; cc-mode: <> are sometimes not reconized as parentheses
Previous Next
Reported by: Herman, Géza <geza.herman <at> gmail.com>
Date: Wed, 17 Apr 2024 10:48:06 UTC
Severity: normal
Found in version 30.0.50
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello, Eli and Géza.
On Thu, May 02, 2024 at 12:30:32 +0300, Eli Zaretskii wrote:
> > From: Herman, Géza <geza.herman <at> gmail.com>
> > Cc: Herman Géza <geza.herman <at> gmail.com>,
> > 70435 <at> debbugs.gnu.org, Eli
> > Zaretskii <eliz <at> gnu.org>
> > Date: Mon, 29 Apr 2024 19:21:01 +0200
> > Hello Alan,
> > Alan Mackenzie <acm <at> muc.de> writes:
> > > I have a fix, I think. It is actually a two line fix, removing
> > > a test
> > > from the top of a function, but it involves reindenting the
> > > entire rest
> > > of the function.
> > > Please apply the patch below, recompile cc-engine.el, then load
> > > the
> > > resulting CC Mode into a running Emacs. Please test it on your
> > > real C++
> > > code, and let me know if the bug is actually fixed. Thanks!
> > I can confirm that the patch fixes the issue, I tested it in real
> > circumstances.
> > Thanks for fixing the problem so quickly!
> Alan, should this bug be closed now?
Apologies for my dithering. I've been having second thoughts about the
patch in the last few days, and wondering whether I should refine it.
It's all to do with a function c-unmark-<>-around-region, which was run
in before-change-functions for a deletion, and after-change-functions for
an insertion. The patch I sent to Géza made that function run in before-
and after-c-f both for insertions and deletions.
I've been wondering whether that is strictly necessary, since it will
slow down CC Mode a little. I'm thinking that in the
insertion/before-c-f case, I might not need the call.
Géza, would you be prepared to do a little more testing if I modified the
patch?
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 1 year and 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.