GNU bug report logs -
#12518
outline-minor-mode doesn't work well in C(++) mode
Previous Next
Full log
View this message in rfc822 format
>> That was 12 years ago, and it has gotten a little bit of attention at
>> least in the time since. Could you summarize some of the current issues
>> with `outline-minor-mode'?
>
> I stopped trying to use Outline minor mode in C and can't remember what
> were the main annoyances. Obviously my bug report was ...hmmm... really
> poor, so it's not worth keeping.
>
> IIRC I think one of the main things I wanted was to be able to fold "a
> function" so we'd keep a single line for that function, whereas
> currently a function like:
>
> static void
> myfun (blabla
> blabla)
> {
> bla blabla;
> }
>
> is treated as 3 independent "headings".
The most reliable way would be to rely on the tree-sitter.
There is already treesit-simple-imenu-settings, but it has
no information about levels, and I have not figured out yet
how to get it. But anyway this should be in a separate
feature request.
This bug report was last modified 1 year and 134 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.