[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline-minor-mode heading levels in C, C++, and html
From: |
Heime |
Subject: |
Re: outline-minor-mode heading levels in C, C++, and html |
Date: |
Fri, 16 Aug 2024 00:23:31 +0000 |
On Friday, August 16th, 2024 at 12:05 PM, Joel Reicher <joel.reicher@gmail.com>
wrote:
> Heime heimeborgia@protonmail.com writes:
>
> > On Friday, August 16th, 2024 at 12:34 AM, Joel Reicher
> > joel.reicher@gmail.com wrote:
> >
> > > Heime heimeborgia@protonmail.com writes:
> > >
> > > > In elisp one uses
> > > >
> > > > ;;; Level 1 Heading
> > > > ;;;; Level 2 Heading
> > > > ;;;;; Level 3 Heading
> > >
> > > This is common, but not universal, and is not part of elisp.
> >
> > Is it the default embedded in outline-minor-mode ?
>
>
> No, it isn't.
>
> > I do understand that the heading patterns are modified by some
> > projects. But I am only looking at what outline-minor-mode
> > does.
>
>
> Outline minor mode provides an abstraction that needs to be
> implemented by the major mode in use.
>
> The outline-regexp variable is a large part of that abstraction,
> which is why I've tried to direct your attention to it. If and
> when a major mode sets that to a sensible value, it is providing
> the implementation for outline-minor-mode that would otherwise be
> missing.
>
> Not default. Missing. - Joel
When I do "emacs -Q" and switch "outline-minor-mode" in an elisp buffer,
I do get the headings ";;;", ";;;;" automatically.
However you said that it is the "emacs-lisp-mode" that is setting
"outline-regexp" and "outline-heading-alist", not "outline-minor-mode".
Ok. I thought that "outline-minor-mode" had defaults for various major
modes. We could check so that the major programming languages and
others would have them defined with something. Because it is not so
easy to change them when they are not set up. Have had significant
trouble with them.
- Re: outline-minor-mode heading levels in C, C++, and html, (continued)
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Yuri Khan, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Yuri Khan, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/14
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Heime, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/15
- Re: outline-minor-mode heading levels in C, C++, and html,
Heime <=
- Re: outline-minor-mode heading levels in C, C++, and html, Stefan Monnier, 2024/08/16
- Re: outline-minor-mode heading levels in C, C++, and html, Joel Reicher, 2024/08/17