GNU bug report logs - #62043
[PATCH] Fix enums appearing as structs in c-ts-base-mode's imenu

Previous Next

Package: emacs;

Reported by: Randy Taylor <dev <at> rjt.dev>

Date: Wed, 8 Mar 2023 01:51:02 UTC

Severity: normal

Tags: patch

Done: Randy Taylor <dev <at> rjt.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Randy Taylor <dev <at> rjt.dev>
Subject: bug#62043: closed (Re: bug#62043: [PATCH] Fix enums appearing as
 structs in c-ts-base-mode's imenu)
Date: Fri, 10 Mar 2023 18:18:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#62043: [PATCH] Fix enums appearing as structs in c-ts-base-mode's imenu

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 62043 <at> debbugs.gnu.org.

-- 
62043: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62043
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Randy Taylor <dev <at> rjt.dev>
To: Yuan Fu <casouri <at> gmail.com>
Cc: "62043-done <at> debbugs.gnu.org" <62043-done <at> debbugs.gnu.org>
Subject: Re: bug#62043: [PATCH] Fix enums appearing as structs in
 c-ts-base-mode's imenu
Date: Fri, 10 Mar 2023 18:16:48 +0000
On Friday, March 10th, 2023 at 00:59, Yuan Fu <casouri <at> gmail.com> wrote:
> 
> > On Mar 8, 2023, at 6:04 PM, Randy Taylor dev <at> rjt.dev wrote:
> > 
> > On Wednesday, March 8th, 2023 at 18:27, Yuan Fu casouri <at> gmail.com wrote:
> > 
> > > > On Mar 7, 2023, at 5:49 PM, Randy Taylor dev <at> rjt.dev wrote:
> > > > 
> > > > X-Debbugs-CC: casouri <at> gmail.com
> > > > 
> > > > With {c, c++}-ts-mode, enums appear as structs in imenu. The attached patch fixes this.
> > > > 
> > > > Example:
> > > > enum Thing { A, B, C };
> > > > 
> > > > Should appear as Enum Thing
> > > > <0001-Fix-enums-appearing-as-structs-in-c-ts-base-mode-s-i.patch>
> > > 
> > > Thanks! I wonder what determines which categories to merge together and which to not? If we separate Enums, should we also separate Unions?
> > > 
> > > Yuan
> > 
> > I think they should all be separate actually. Attached a patch that does so.<0001-Fix-enums-and-unions-appearing-as-structs-in-c-ts-ba.patch>
> 
> 
> That’s probably the right thing to do. I applied the patch, thanks!
> 
> Yuan

Thanks, closing.

[Message part 3 (message/rfc822, inline)]
From: Randy Taylor <dev <at> rjt.dev>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: [PATCH] Fix enums appearing as structs in c-ts-base-mode's imenu
Date: Wed, 08 Mar 2023 01:49:49 +0000
[Message part 4 (text/plain, inline)]
X-Debbugs-CC: casouri <at> gmail.com

With {c, c++}-ts-mode, enums appear as structs in imenu. The attached patch fixes this.

Example:
enum Thing { A, B, C };

Should appear as Enum Thing
[Message part 5 (text/html, inline)]
[0001-Fix-enums-appearing-as-structs-in-c-ts-base-mode-s-i.patch (text/x-patch, attachment)]

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

Previous Next


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