Re: imenu parsing of ObjC classes and selectors

Alan Mackenzie <[email protected]>
Newsgroups gmane.emacs.cc-mode.general
Message-ID <[email protected]>
Hello, JD.

On Wed, Aug 12, 2026 at 12:47:18 -0400, J.D. Smith wrote:
> Alan Mackenzie <[email protected]> writes:

[ .... ]

> > The following patch, I hope, fixes it.  It should apply cleanly to the
> > version of CC Mode contained within the Emacs master branch (and also
> > the Emacs release branch).  Would you try it out, please, on your real
> > Objective-C source, and let me know how well it works.  Note that some
> > Emacs variables' values have been changed, so it would be best to
> > restart Emacs after rebuilding CC Mode to ensure the obsolete values
> > don't remain.

> Thanks for looking into it, Alan.  I was able to apply and test your
> patch.  Once I re-evaluated the updated variables and recompiled
> cc-menus.el, it is now working very well in my testing.  This will be
> very nice to have, as there are some very long implementations in the
> giant emacs-mac files I'm working on... easy to get lost.

Thanks for such a rapid response.

> BTW, I recently started using breadcrumb-mode, which pulls data
> exclusively from imenu as point moves (unlike which-func), and is hence
> a very nice way to quickly validate the imenu listing for content and
> positioning.

I hadn't heard of breadcrumb-mode.  I'll need to try it out.

> I assume these changes will land on master.  I'll be sticking with v31
> release for the next year or so.  Aside from upstream, do you release
> new versions of cc-mode on ELPA or any other package repository?

I've just committed the changes to master.  Also to the XEmacs project
(which is still live), and to the CC Mode hg repository at

    ssh://<Username>@hg.savannah.nongnu.org/cc-mode

..  I moved it from SourceForge some while ago after some unsavoury
changes in their terms and conditions.  I haven't yet got around to
moving the mailing list.  I really ought to press on with this.

> Thanks again for your work maintaining such a widely capable set of
> modes!

Appreciated!

> JD

-- 
Alan Mackenzie (Nuremberg, Germany).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.