all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: monnier@iro.umontreal.ca
Cc: help-gnu-emacs@gnu.org
Subject: Re: Setting up user defined texinfo headlines using outline-heading-alist
Date: Fri, 14 May 2021 07:25:19 +0200	[thread overview]
Message-ID: <trinity-65c9453d-da2a-4a42-af4d-d9910ef49e32-1620969919738@3c-app-mailcom-bs03> (raw)
In-Reply-To: <jwvo8de6kg9.fsf-monnier+emacs@gnu.org>


> Sent: Friday, May 14, 2021 at 3:56 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: Setting up user defined texinfo headlines using outline-heading-alist
>
> > I would be grateful for some explanation of variables "outline-regexp" and
> > "outline-heading-alist".
>
> `outline-regexp` is the most important setting for outline.el since it
> defines which lines are considered headings.
>
> `outline-heading-alist` is a relatively late addition to `outline.el`,
> very rarely used.  Basically it's just there for `outline-promote` and
> `outline-demote`.

Is it usual that we use the same heading name and level declaration
(texinfo-section-list in our case) for both "outline-regexp" and for
"outline-heading-alist"?

> > Do we really need to have both outline-heading-alist and texinfo-section-list,
>
> Of course: `texinfo-section-list` is the variable that defines for
> `texinfo.el` the sectioning commands that are in use.  It can be set by
> the user to adapt to their own Texinfo needs.
>
> `outline-heading-alist` is used as the way for `texinfo.el` to tell
> `outline.el` which heading promotes/demotes to which.

If "outline-regexp" is the most important setting, whilst "outline-heading-alist"
is rarely used, we can just set "texinfo-section-list" and "outline-regexp" and
introduce the "promotes/demotes" capability automatically from "texinfo-section-list".

Then users could simply set just "outline-regexp" only.  Then again, we could
set outline-regexp directly without using "texinfo-section-list".

The texinfo.el states that

	      ;; We should merge `outline-heading-alist' and
	      ;; `texinfo-section-list'.  But in the mean time, let's
	      ;; just generate one from the other.

We should look at texinfo.el as it does need some cleaning up and simplification.

Regards
Christopher

>         Stefan
>
>
>



  reply	other threads:[~2021-05-14  5:25 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 14:21 outline-heading-alist for elisp using ";; * " Christopher Dimech
2021-05-10 21:08 ` Philip Kaludercic
2021-05-11  1:55   ` Christopher Dimech
2021-05-11  3:00     ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-11  5:05       ` Christopher Dimech
2021-05-11 12:06         ` Jean Louis
2021-05-11 12:40           ` Christopher Dimech
2021-05-11 14:17             ` Jean Louis
2021-05-11 12:56           ` Christopher Dimech
2021-05-11 14:20             ` Jean Louis
2021-05-11 15:32               ` Christopher Dimech
2021-05-11 18:09                 ` Jean Louis
2021-05-12  1:46                   ` Christopher Dimech
2021-05-12  4:00                     ` Jean Louis
2021-05-13  3:33                       ` Christopher Dimech
2021-05-13  7:22                         ` Jean Louis
2021-05-13  7:41                           ` Christopher Dimech
2021-05-13 10:03                             ` Jean Louis
2021-05-13 10:22                               ` Christopher Dimech
2021-05-13 10:33                                 ` Jean Louis
2021-05-13 11:37                                   ` Christopher Dimech
2021-05-11 13:15           ` Christopher Dimech
2021-05-11 14:22             ` Jean Louis
2021-05-11 15:22               ` Christopher Dimech
2021-05-12  1:53       ` Christopher Dimech
2021-05-12 12:31         ` Stefan Monnier
2021-05-12 12:43           ` Christopher Dimech
2021-05-12 14:35             ` Yuri Khan
2021-05-12 14:52               ` Christopher Dimech
2021-05-13 12:29               ` Setting up user defined texinfo headlines using outline-heading-alist Christopher Dimech
2021-05-13 13:26                 ` Yuri Khan
2021-05-13 15:10                   ` Christopher Dimech
2021-05-13 16:05                     ` Yuri Khan
2021-05-13 18:29                       ` Jean Louis
2021-05-13 18:48                         ` Christopher Dimech
2021-05-13 19:01                         ` Yuri Khan
2021-05-13 18:35                       ` Christopher Dimech
2021-05-13 19:13                         ` Yuri Khan
2021-05-14  3:49                           ` Christopher Dimech
2021-05-14  3:56                             ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-05-14  5:25                               ` Christopher Dimech [this message]
2021-05-13 15:34                   ` Jean Louis
2021-05-11  2:52   ` outline-heading-alist for elisp using ";; * " Christopher Dimech
2021-05-11  4:50   ` Jean Louis
2021-05-11  5:17     ` Christopher Dimech
2021-05-11 20:54 ` Jeremie Juste

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=trinity-65c9453d-da2a-4a42-af4d-d9910ef49e32-1620969919738@3c-app-mailcom-bs03 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.