]> git.eshelyaron.com Git - emacs.git/commit
Remove duplicate entries in c-ts-mode's Imenu
authorYuan Fu <casouri@gmail.com>
Sun, 8 Jan 2023 01:46:27 +0000 (17:46 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 8 Jan 2023 02:44:16 +0000 (18:44 -0800)
commit8575043f56b6b09001d53657f91eb2bb706e802a
tree1faf176f518f7ad3f5e4b5c0255109411c51df53
parentef7f3c6388be1299e3834f7c96889f0e17745c24
Remove duplicate entries in c-ts-mode's Imenu

Right now the Class subindex includes top-level functions, which is
wrong. This change ensures the Class subindex only contain classes and
functions nested in those classes.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--defun-for-class-in-imenu-p): New function.
* lisp/progmodes/c-ts-mode.el (c-ts-base-mode): Use the new function.
lisp/progmodes/c-ts-mode.el