all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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
Date: Wed, 12 May 2021 10:04:32 -0400	[thread overview]
Message-ID: <jwvmtt0jbft.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <trinity-1ba436dc-79f5-4064-ab7a-152f7ee0703a-1620823700829@3c-app-mailcom-bs13> (pietru@caramail.com's message of "Wed, 12 May 2021 14:48:20 +0200")

> 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	other threads:[~2021-05-12 14:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11 16:43 headings for texinfo-mode using outline-minor-mode pietru
2021-05-11 17:26 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-12  4:43   ` pietru
2021-05-12 12:34     ` Stefan Monnier
2021-05-12 12:48       ` pietru
2021-05-12 14:04         ` Stefan Monnier [this message]
2021-05-12 14:15           ` pietru
2021-05-13  3:00       ` Christopher Dimech
2021-05-12 12:36     ` Jean Louis
2021-05-13  2:50       ` Christopher Dimech
2021-05-13  4:28         ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-13  4:46           ` Christopher Dimech
2021-05-13  9:06             ` Robert Thorpe
2021-05-13  9:39               ` Christopher Dimech
2021-05-13  7:20         ` Jean Louis
2021-05-13  7:36           ` Christopher Dimech
2021-05-13  3:57       ` Christopher Dimech
2021-05-12  5:11   ` pietru
2021-05-12  2:16 ` pietru
2021-05-12  2:39   ` pietru

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmtt0jbft.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pietru@caramail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.