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 05:49:35 +0200 Message-ID: References: <878s4m5mbj.fsf@posteo.net> 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="12047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 05:50:13 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 1lhOq4-0002zV-9I for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 05:50:12 +0200 Original-Received: from localhost ([::1]:53012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhOq3-0005NE-98 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 23:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhOpY-0005N3-Cy for help-gnu-emacs@gnu.org; Thu, 13 May 2021 23:49:40 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:39613) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhOpV-0007TB-SR for help-gnu-emacs@gnu.org; Thu, 13 May 2021 23:49:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620964175; bh=D8nQDIO3eCB01q4bRicinYGQsHNP45SBDmJwqV1PmKs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=h8GjIe/KRsW4OqQ1l48ejMoVpNbHN3msFfPudJSwIeU+wdcA5WyDHOlICG2fLT1Np 59ehCsziHGw5oQhn+0UjBLhwBG2gWWLpq8RzgMbCVZeAnPa/X1n6oL0jTpwdJIHnp+ jHJvJzQnmOWzlwxZhWI9OY/zzTSvwduu73yVub2w= 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 05:49:35 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:+YGMYa/fBrC5YJjWjMTMmO9uLa7wdv9q29/U09f2Wqestj1bwyGkp52Eh9kYrSfZXfQxC OUQR8R0Uy8aVFFxWCfsIYRsH6AW2uTfsUyuwFAVM3LPeqbhXfI9LU7gFWNVEFwaPuU2iwUOlrnrt LUTRbmGkt4d+5x07IgBx+os3drMNwBRujuPHIphw83kB0FhdXfricK/t+HtxvA2erJEiHRe4YCS3 gvl3qkAHLhgLzirhxJDott8RxOoEyBKT0kIaODzB2zlPDRkb1H048PTPd0C0rgk0VvrVECUmNkY2 rE= X-UI-Out-Filterresults: notjunk:1;V03:K0:Eb6nAockBik=:4w9MK4kD0F4xZnQKE8JzjK hRPr503fjZRU9GLrUAMHkEfBGBSqU6sjhPR3OEZ+MdSqAf1l3d0e0hHVDZdU/0dAbnjLV3qAP F/Gm6sLVPr5kk/NDRBFbSb+G/8TnW14eBJtICyvSdrM0RzRK9jhgfUkR37pDvlBKpqukLbzOk hDnJpmuX9XeMx7vOn6wsSAschg7iHDsBV0ACYzaDEJkAGKFCNmtlp5h+7HEQvUFmAUspKrI7o tkVkpdZl4/38FqF3dZ7/Wjh98wsT9X0ZHl1XLT41PqGbyBXeQ8XAp1Cu37JFJ+rv30zgBouym LszapzHXCZ//RHubncrI62ly7vfU4PQmjrZh1PJIkBEVkF0cMCMK4sCT4HguyZ85yB6asPPYP DpkRPslzVBSuYLRUGE0hJic273s5iheRqVb8RIvctYwvmw4h47fd5LD9dpMrMMMw+bb7t0YoZ AD83QVWNglRkZhPZEbmePw1Pei84uDUtumdUD/0Xb/GIXnsI/CItClrfWzazYzEePcujr6gGW 4hIs4LFwhdTvX6LglB8fvjkn/UNhpspMEXvGJhhzwWAZUb9caNpOUtIerEUOX5sO5qjI4DZQC BdNpdIhK1XocHeuCAFgdEwVRsC+MAVyQqhfaeb5am1GXby4ck8BUrf+VXoAn/Czdz6+kq9PLS Hxc5VVTdm3Q6JZQVUyQcLaN6pDDiYmdkW+rOS7YUug0+4mOIKqrh9YOOcdKVtfNo/IRJDopIl n0RaEceFqQ7vrHatM91nPNVBTtIR0vJqJKYaee5Q8oLKKhaKlCGLKgELhms/BY918oC0apl3 Received-SPF: pass client-ip=212.227.17.22; 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_H2=-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:129758 Archived-At: I would be grateful for some explanation of variables "outline-regexp" and "outline-heading-alist"=2E =20 texinfo=2Eel sets both "outline-heading-alist" and "outline-regexp", the l= atter from the other using the same variable "texinfo-section-list"=2E Do we really need to have both outline-heading-alist and texinfo-section-l= ist, because as far as I can see we are using the same definition of headings and level= s with the variable "texinfo-section-list"=2E=20 > Sent: Friday, May 14, 2021 at 7:13 AM > From: "Yuri Khan" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re: Setting up user defined texinfo headlines using outline-hea= ding-alist > > On Fri, 14 May 2021 at 01:35, Christopher Dimech wrot= e: >=20 > > It is then very easy to tell a user to learn more elisp, rather than c= onvince a > > developer to be consistent and write in ways that assist in the reuse = of their > > code=2E >=20 > Yeah, much of the code in and around Emacs assumes the user can read, > and often also write, Elisp=2E >=20 > If you find outline-regexp in a docstring and you want to know where > it=E2=80=99s defined and how it=E2=80=99s used, your best bet is to invo= ke > xref-find-references on it and skim through the code=2E >=20 > If you want to know how to have headings fontified, M-x find-library > RET outline RET, then search for =E2=80=9Cface=E2=80=9D, eventually find= a variable > =E2=80=98outline-font-lock-keywords=E2=80=99 and its use in =E2=80=98out= line-mode=E2=80=99 but not in > outline-minor-mode (probably because with outline-minor-mode you > already have some fontification by the major mode)=2E Maybe find a way > to add =E2=80=98outline-font-lock-keywords=E2=80=99 to the major mode=E2= =80=99s > =E2=80=98font-lock-defaults=E2=80=99, but that definitely requires some = programming=2E >=20 >