all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12518: outline-minor-mode doesn't work well in C(++) mode
@ 2012-09-26  3:08 Stefan Monnier
  2024-01-10 11:30 ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2012-09-26  3:08 UTC (permalink / raw)
  To: 12518

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


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12518: outline-minor-mode doesn't work well in C(++) mode
  2012-09-26  3:08 bug#12518: outline-minor-mode doesn't work well in C(++) mode Stefan Monnier
@ 2024-01-10 11:30 ` Stefan Kangas
  2024-01-12 15:55   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2024-01-10 11:30 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 12518

Stefan Monnier <monnier@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12518: outline-minor-mode doesn't work well in C(++) mode
  2024-01-10 11:30 ` Stefan Kangas
@ 2024-01-12 15:55   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-01-13 17:55     ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-01-12 15:55 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 12518-done

> 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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#12518: outline-minor-mode doesn't work well in C(++) mode
  2024-01-12 15:55   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-01-13 17:55     ` Juri Linkov
  0 siblings, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2024-01-13 17:55 UTC (permalink / raw)
  To: 12518; +Cc: monnier

>> 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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-13 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26  3:08 bug#12518: outline-minor-mode doesn't work well in C(++) mode Stefan Monnier
2024-01-10 11:30 ` Stefan Kangas
2024-01-12 15:55   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-13 17:55     ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.