From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: headings for texinfo-mode using outline-minor-mode Date: Wed, 12 May 2021 16:15:09 +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="13702"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 12 16:24:32 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 1lgpmq-0003RC-HC for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 May 2021 16:24:32 +0200 Original-Received: from localhost ([::1]:39344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgpmo-0006n8-TZ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 May 2021 10:24:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgpdu-0004Sx-0E for help-gnu-emacs@gnu.org; Wed, 12 May 2021 10:15:22 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:46113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgpdq-0003VN-T9 for help-gnu-emacs@gnu.org; Wed, 12 May 2021 10:15:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620828909; bh=UWOMCT0cCtKaBpHyNuotqFbct6l9W9Sr5OUXKGwVGx8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=WQsixnDweAfVdwMcioOvQ0LWw1C/fIkxLSeXrdRqNeICZLCT1mnh47m5tA1LJqH/k szlomH+FG6S9vOL2OmOA4cu0SOiKDdjexYDWBkytHXD/fj1zfJwlWVyF9UBX+h6Icm p1jMkyzwjr5xBfVERHqK41giGFUqZvCQoiR25Ilg= 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-bs13.server.lan [172.19.170.181]) (via HTTP); Wed, 12 May 2021 16:15:09 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:e0yqW/ZehYrx/18r5a2ExiQKWHZMiaHsbv21Er7GWESR5jKFi3FQkpLBU1NkTYYrW+q+E UvpTaGOXIaIVfUhvwSlq2SDDu7kQytlZdiUnhDyoq32aJYiA285CY123C9zHdH/sIjovEsunbS2u XpNf3+af3SYKGgUDjkayta5V4PR9QOKA1NCOn4FB845ly2XTwe9mexqkp1HOsuCYlZuqcysA8FRv s4GmpDA/8aqcvVr7VYVimV90nHnJj51IvEiChat3l5Zov/ePK7CpCzzK1MO0KV0DggQtc7kaIqqB yQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:amyjxlP7SVc=:iBDp77LhWmmMNwkW/25/H7 T/lzhwzw5PGCw2B57gWtK8zDZh09BowhILwsBK2r6NALh00yGvw34lKhTCNWLyTTcN1Cpm/MC JGD7/FCBji/rr9oLDyPvjBArf8QMzss0gDfbgnRrde7CT3s3qgtvIG7FhxUqa2iNATbkQpv1J fY8gE8GqVxXuyoQUDwUHT+m5iSAmRUOQof9AJq3Gn4+jnGQBQmw02pzOC9GyhwVum3+gXv3dk 2e7SbmNaaNzzuKpHP8Aj6DQZIndt/M2Kl3aFsXV27+mxVTzdJuBa0sNvZdegtJeFYHE5/jyvK qALNyccFuyyBMUZytH5Wrr5mcIt/fM8mcetkxYyOZTQnzRVJNSiJwqc0bWLrWU+JRk1IrM9J3 PdIWGWc3brOQfE5Qk6ZJweUBP3qkedVMHXTs0POX5AWWcCK8ZBUyl6bge+zHTbLvsdIVGwVBV rWN/Jy2HpTXZTU+BNMqKmr+5ZZzAiXvb39YCqqQcvJ9ovRKoE1CO+mD0p1pih1VT5Gq/HF4/6 469UEIMrhFaQYhKzSI/eu3VS8V5qeXU2vATSCcLX6TFDctvqpQg9iEEIDj5dh1xZMlWPHfkU3 jwesXCUHKWG0WxbZ71bSQZuTZCAq4a4uSz82mpCkIV7trSrM+QkCMAvJrvd5GCXcv9mQOZq2u cDn3oFX/xFjN4vn8jaPl4rXJOtrICvjME7tiFedpsi5VQvmB10A2o/uAHEH0ONjm8Gj2PnUDn WfDUOl4r1RNGTAcMuaM1IU//T8XFSMRxZOHLpfosbteajbTV0W4y2Sabj7KWvBXVgjdJ6vQr Received-SPF: pass client-ip=212.227.17.21; envelope-from=pietru@caramail.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:129723 Archived-At: Will need to figure out how to get set outline-heading-alist to work with = a new set of headings. I am missing something. This is what I tried, but would need some more assistance to see what else= I have to do. (defvar gilgamesh-texinfo-hdlevels '( ("@chapter" . 2) ("@section" . 3) ("@subsection" . 4) ("@subsubsection" . 5) ;; -------------------------------------------------- ("@unnumbered" . 2) ("@unnumberedsec" . 3) ("@unnumberedsubsec" . 4) ("@unnumberedsubsubsec" . 5) ;; -------------------------------------------------- ("@appendix" . 2) ("@appendixsec" . 3) ("@appendixsubsec" . 4) ("@appendixsubsubsec" . 5) ;; -------------------------------------------------- ("majorheading" 2) ;; -------------------------------------------------- ("chapheading" 2) ("heading" 3) ("subheading" 4) ("subsubheading" 5) ;; -------------------------------------------------- ("@uchap" . 2) ("@usec" . 3) ("@usubsec" . 4) ("@usubsubsec" . 5) )) (setq-local outline-heading-alist (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) gilgamesh-texinfo-hdlevels)) ;;(defun gilgamesh-faddeev-texinfo () ;; "todo" ;; (add-hook 'texinfo-mode-hook #'gilgamesh-texinfo-hdlevels) ) > Sent: Thursday, May 13, 2021 at 2:04 AM > From: "Stefan Monnier" > To: pietru@caramail.com > Cc: help-gnu-emacs@gnu.org > Subject: Re: headings for texinfo-mode using outline-minor-mode > > > 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 ow= n. > > 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" > >> 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-headi= ng-alist" > >> > for each language. > >> > >> Better for what? > >> > >> > Then, in each language mode, one simply calls the > >> > appropriate function. > >> > >> Which function? > >> > >> > >> Stefan > >> > >> > >