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: Stefan Monnier
Subject: Re: headings for texinfo-mode using outline-minor-mode
Date: Wed, 12 May 2021 10:04:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Having outline-minor-mode set outline-heading-alist and outline-regexp form 
> the
> different languages (elisp, texinfo).  Then each major mode could use it when
> outline-minor-mode is activated.  Currently, each language sets its own.
> But it seems to me that outline-minor-mode could do that.  Everything would 
> then
> be well contained, rather than spread around the various major-modes.

Send a patch to show how you think it could/should work,


        Stefan


>> Sent: Thursday, May 13, 2021 at 12:34 AM
>> From: "Stefan Monnier" <monnier@iro.umontreal.ca>
>> To: pietru@caramail.com
>> Cc: help-gnu-emacs@gnu.org
>> Subject: Re: headings for texinfo-mode using outline-minor-mode
>>
>> >> `texinfo-mode` is one of the rare modes which explicitly sets
>> >> `outline-heading-alist`, so you have the answer in there ;-)
>> >
>> > Would it not be better for outline-minor-mode to set 
>> > "outline-heading-alist"
>> > for each language.
>>
>> Better for what?
>>
>> > Then, in each language mode, one simply calls the
>> > appropriate function.
>>
>> Which function?
>>
>>
>>         Stefan
>>
>>




reply via email to

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