[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: My usage of imenu is broken.
From: |
Alan Mackenzie |
Subject: |
Re: My usage of imenu is broken. |
Date: |
Tue, 28 May 2024 20:46:48 +0000 |
Hello, Eli
On Tue, May 28, 2024 at 21:29:43 +0300, Eli Zaretskii wrote:
> > Date: Tue, 28 May 2024 13:57:46 +0000
> > Cc: emacs-devel@gnu.org
> > From: Alan Mackenzie <acm@muc.de>
> > So my problem was being in c-ts-mode, for which all these things I don't
> > like about imenu are apparently normal. It's one more reason for me to
> > carry on using CC Mode.
> I just now tried "M-x imenu" in c-ts-mode, and I don't see such a
> catastrophe. True, if you leave imenu-flatten at its default nil
> value, you need to choose top-level "kind" of identifiers before you
> can type the name. For C, these "kinds" are Function, Variable, and
> Struct. Once you do select one of them, Imenu prompts you again, and
> then you can type the identifiers, with completion, or type TAB to see
> all of the names.
> This is not very different from what you are used to.
It's different enough to me to matter. It adds boilerplate entry to
data entry, and would likely more than double the time to get to the
target function. I'm not saying here that it's bad, just that it would
be bad for me.
I don't think anything like the CC Mode imenu style is available in the
c-ts-mode etc. modes.
> Yuan, why does c-ts-mode' Imenu support behave differently in this
> regard from CC Mode? What was the rationale for the different
> behavior?
I'm not Yuan, but it could be a desire to support variables and structs
as well as just functions.
--
Alan Mackenzie (Nuremberg, Germany).
- My usage of imenu is broken., Alan Mackenzie, 2024/05/28
- Re: My usage of imenu is broken., Stefan Monnier, 2024/05/28
- Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.], Alan Mackenzie, 2024/05/29
- Re: Subversion of user chosen major mode by Emacs. [Was: My usage of imenu is broken.], Dmitry Gutov, 2024/05/29
- Re: Subversion of user chosen major mode by Emacs., Alan Mackenzie, 2024/05/29
- Re: Subversion of user chosen major mode by Emacs., Dmitry Gutov, 2024/05/29
- Re: Subversion of user chosen major mode by Emacs., Eli Zaretskii, 2024/05/29