From: Joel Reicher <joel.reicher@gmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: imenu framework
Date: Sun, 28 Jul 2024 16:23:28 +1000 [thread overview]
Message-ID: <86v80qxcf3.fsf@gmail.com> (raw)
In-Reply-To: <GDV1nQtAwDjkKFWzuL8eC11Uvlayj5dnUJuxGM43RQX0zgOg13z8Z3_AO2TXynRzoPIawiwXH4RV9L6AUadjlXiS9lq4qIrIwikUNYhVgqo=@protonmail.com> (Heime's message of "Sat, 27 Jul 2024 21:29:04 +0000")
Heime <heimeborgia@protonmail.com> writes:
> imenu is a framework for mode-specific buffer indexes
>
> Does this mean that it can list the function names depending on
> the programming language mode ?
That's what the language mode should provide, yes, but strictly
speaking it depends on the mode.
Do you have a particular mode in mind? Its code can be examined.
For example, java-ts-mode contains
(setq-local treesit-simple-imenu-settings
'(("Class" "\\`class_declaration\\'" nil nil)
("Interface" "\\`interface_declaration\\'" nil
nil)
("Enum" "\\`record_declaration\\'" nil nil)
("Method" "\\`method_declaration\\'" nil nil)))
(and then there is glue in the generic treesitter code)
Cheers,
- Joel
next prev parent reply other threads:[~2024-07-28 6:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-27 21:29 imenu framework Heime
2024-07-28 6:23 ` Joel Reicher [this message]
2024-07-28 17:18 ` Heime
2024-07-28 22:02 ` Heime
2024-07-28 23:55 ` Heime
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86v80qxcf3.fsf@gmail.com \
--to=joel.reicher@gmail.com \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).