GNU bug report logs - #12518
outline-minor-mode doesn't work well in C(++) mode

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Wed, 26 Sep 2012 03:11:01 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: 12518 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca
Subject: bug#12518: outline-minor-mode doesn't work well in C(++) mode
Date: Sat, 13 Jan 2024 19:55:59 +0200
>> 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.