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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12518 in the body.
You can then email your comments to 12518 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12518; Package emacs. (Wed, 26 Sep 2012 03:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 26 Sep 2012 03:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: outline-minor-mode doesn't work well in C(++) mode
Date: Tue, 25 Sep 2012 23:08:18 -0400
As the subject says.
It's not getting enough love,


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12518; Package emacs. (Wed, 10 Jan 2024 11:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 12518 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12518 <at> debbugs.gnu.org
Subject: Re: bug#12518: outline-minor-mode doesn't work well in C(++) mode
Date: Wed, 10 Jan 2024 03:30:23 -0800
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> As the subject says.
> It's not getting enough love,

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'?

It works relatively okay here, FWIW.  But I'm not a heavy user.




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Fri, 12 Jan 2024 15:56:02 GMT) Full text and rfc822 format available.

Notification sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
bug acknowledged by developer. (Fri, 12 Jan 2024 15:56:02 GMT) Full text and rfc822 format available.

Message #13 received at 12518-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 12518-done <at> debbugs.gnu.org
Subject: Re: bug#12518: outline-minor-mode doesn't work well in C(++) mode
Date: Fri, 12 Jan 2024 10:55:21 -0500
> 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".


        Stefan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12518; Package emacs. (Sat, 13 Jan 2024 18:11:02 GMT) Full text and rfc822 format available.

Message #16 received at 12518 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: 12518 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca
Subject: Re: 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 Feb 2024 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.