help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: headings for texinfo-mode using outline-minor-mode


From: Christopher Dimech
Subject: Re: headings for texinfo-mode using outline-minor-mode
Date: Thu, 13 May 2021 11:39:42 +0200

> Sent: Thursday, May 13, 2021 at 9:06 PM
> From: "Robert Thorpe" <rt@robertthorpeconsulting.com>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca
> Subject: Re: headings for texinfo-mode using outline-minor-mode
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> >> Sent: Thursday, May 13, 2021 at 4:28 PM
> >> From: "Stefan Monnier via Users list for the GNU Emacs text editor" 
> >> <help-gnu-emacs@gnu.org>
> >> To: help-gnu-emacs@gnu.org
> >> Subject: Re: headings for texinfo-mode using outline-minor-mode
> >>
> >> > Being able to have different comment definition for headings would be 
> >> > very valuable.
> >> > I also like the idea that headings become different than code.  This is 
> >> > because, you
> >> > could collapse code independently of headers.  Currently code structures 
> >> > are being
> >> > used as headers, a strategy which is faulty from my point of view.
> >>
> >> Then you don't want `outline-minor-mode`.  You might like `allout-mode`.
> >
> > I am saying to clean up outline-minor-mode and write clear instructions on 
> > how
> > to set up user defined outline-heading-alist.  This is because  
> > outline-minor-mode
> > has much greater use for code.
>
> I disagree.
>
> Outline-mode and outline-minor-mode are simple.  They're made to do
> simple and predictable things.  That's the point of them.

Would you know how to set up outline-heading-alist for user defined list
for texinfo with post a sample code.  Have not been successful yet.

> We have Org-mode because people want something more than what
> outline-mode provides by itself.  We also have things like outshine-mode
> and allout-mode because people want more than what outline-mode does by
> itself.  But not everybody wants more that's why outline-mode and
> outline-minor-mode still exist!
>
> It seems that you are trying to make outline-mode into outshine-mode.
> There's no need to do that, we already have outshine-mode.

Not currently.  Currently I am trying to set outline-heading-alist and perhaps
improve it a bit.  In the texinfo.el code there are some remarks on 
improvements.
In addition, there are not many placed where outline-heading-alist is defined.

> If you're not doing that, then I don't understand what you are doing.
> That's not surprising since so many of your emails are so vague.  You
> have to learn to express yourself more clearly as Yuri Khan said.

That would help, yes.

> Also, to write a new mode you have to learn elisp in more depth.  This
> project you're doing is a vehicle for doing that certainly.  But
> remember that the existing modes I've mentioned were probably written by
> people who already knew elisp.

I have done a few minor modes, but I can only do limited things at this point.
Am trying to learn by actually writing some code, but realise my limited set
I tools I am comfortable with.


> BR,
> Robert Thorpe
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]