From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Setting up user defined texinfo headlines using outline-heading-alist Date: Fri, 14 May 2021 07:25:19 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8393"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: monnier@iro.umontreal.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 07:26:02 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhQKn-00023f-TQ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 07:26:01 +0200 Original-Received: from localhost ([::1]:50098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhQKm-0002tS-U2 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 01:26:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhQKF-0002qR-Og for help-gnu-emacs@gnu.org; Fri, 14 May 2021 01:25:27 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:33133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhQKC-0007us-HJ for help-gnu-emacs@gnu.org; Fri, 14 May 2021 01:25:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620969919; bh=nkd1j/hngJVO3YbvfOCa/+K6Eola7hogcUXIZfsATDw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=RSPvmGYHSSbWt9OgGgurjC2RXZ5WLj5dACh23/jrxr8W0vl9OATJSa1GYE/xjD0vA XmPVdPYAyX66X4eMNP7hVZjlt37ERbVuDIx8fKsBQSeHaMBCOxKFkYNA4CEy1b1u50 ntqYDWgdkssXyDKmwCO2O18P6g8J//mbhAPCjx+c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs03.server.lan [172.19.170.169]) (via HTTP); Fri, 14 May 2021 07:25:19 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:QO0NHtZIhERxIFe07Eo4cMjib3qEkqm4c9zthqjp3uHrULeKU2B5kvvE3XyzQpSQN2LAg in14xeTkPGz73RSQ9waBxR7QE9nSQJj0rED0bEFUzuL/3RYDjmwy7jBVJMm3oPjprkja71kBKceA DZd6Qu9U/Or5t6oGUKSypImRen4/A5PYKJSJUFRNuSL43Tm3eOt5ao3Fnkx1HCXBOakj49hTiOnx Zew3z5nxfNz1bAPS1h5pXNkSfIGj7Kwz4z99iQvbo3Vdqzjltc8c7bzjgtHBjoMRlmIInlMrIhky Kc= X-UI-Out-Filterresults: notjunk:1;V03:K0:8a8FMjBMdBo=:GmDUaqCytxe2lbfxIBVivZ Zn480C+v4PlZVYCrsu8nCG8Va2pNi92cBdZTEVCfnnAkKAmNRhF3VVfNEPw8o+GxLeifHn0yQ JVYBR20xF91o7Fdk0HndX4eJcSCARSSrYNiY+8TWvh8rKUlisJk249vi/mMeU1s9oxth6lIkm qabpjCaSb1JiC61hfIm905G2hm7NAqrRp/+8V8hlUfMZrieADMr+0aM3tdzNuRiC0DF5+gAOU 8MZg72V856DOUd1g/X6oXbuu8mP17igSkIkLZA/wAhsJl2T4QnBiGbaPFMy6k9O+wbPhOGYrh jLMLzUgYitU12KVBcXGhk86K/n+0Mn/eWTIsZ8wQ203Y9PMv242sR6bkjTMphJ2iyxOnBcZPV hah5FTWeWCsj/YNm6VG0mBA1G6adIO2xJwIWXUEH/xpuyvLr+L0eESrEpmEkIZS4JuIOBS9hJ L82mnVkGTmbPgN/BtbUKrKAswqOaMiv2ds3hTmzwNfcdjN5jhZ36ilxgTPiWSKTok4QgDCRgP e3UX//2StGQUUfl+RbMfJZOHx1ZjHgEHh6jGVItg4OOjvgltdFVIt1EiuX9BZDr+frXHcMG4q dr3bPFzXEwml9Q7cfSUHVA0exdSCggVZXof15sDeM8OR4E0ME1r5nj3Lbzgh8OrE0zYi/o7ZV M7mdQDCbmq7OvxDDboErpkTl7YK/yxH7jaU5xi8SFOBH4F1Ukqrq/UMhZFlXYX7HdnC/gjXKu 12DH2tMa+A85q82/FONTowWqcwakQtzYizQ+67eulSf8K7HVktRESFtBb0P4nvyvkg8mTZM4 Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129760 Archived-At: > Sent: Friday, May 14, 2021 at 3:56 PM > From: "Stefan Monnier via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: Setting up user defined texinfo headlines using outline-hea= ding-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-secti= on-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-se= ction-list". Then users could simply set just "outline-regexp" only. Then again, we co= uld 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 simplifi= cation. Regards Christopher > Stefan > > >