I don’t know if our legal department will clear this or not but I’m reaching out to them. I can prepare a patch for the basic changes in the meantime. You can see the basic code changes from that reddit post. I’ll rename the functions to match in java-ts-mode.el , look into the sparse tree function and if there is anything else stylistically, you’d like I could do that as well. Smaller point, ,y preference is to expose records rather than enums and/or make the set configurable in a list. Ben From: Theodor Thornhill Date: Tuesday, April 30, 2024 at 11:30 AM To: Benjamin Leis Cc: Yuan Fu , 70614@debbugs.gnu.org <70614@debbugs.gnu.org> Subject: Re: bug#70614: Wrong simple imenu definition for java [External Email] Benjamin Leis writes: > Hi Yuan > > Yes it was me that posted on reddit. I’ll look into the sparse tree > method – that looks promising. I’d be happy to add into the tree. > What would the process be for that? > > Ben If you just extend the current implementation and wrap it nicely in a patch and send it as a reply to this email, I'd be happy to review and merge. Remember that for some "significant" contribution an assignment to the FSF is needed. You can ask for a form to start that process here, and someone will send it to you off list. That can take some time, so if you're willing to do that I'd suggest you get started on that sooner rather than later :-) Theo