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: headings for texinfo-mode using outline-minor-mode Date: Thu, 13 May 2021 04:50:18 +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="16396"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 13 04:51:26 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 1lh1Re-0004Al-Hp for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 04:51:26 +0200 Original-Received: from localhost ([::1]:48668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lh1Rd-0002Al-4d for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 May 2021 22:51:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lh1RA-0002Ab-Sj for help-gnu-emacs@gnu.org; Wed, 12 May 2021 22:50:57 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:50153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lh1R8-0005yL-T1 for help-gnu-emacs@gnu.org; Wed, 12 May 2021 22:50:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620874219; bh=+YpGsmbczwbAG8mdLKrofqSMqLQL3D0WEKWe+333kD4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bZFh1CFqrXW/WjiC+Al8emrZzMTc9TVJc8uBvEozWjnPvs964Hg1ud5NQ8rrq6Qk1 JOZIYCtx7a/0RfIuqlenC96/F3d6gZ5wHlxKsoxg5k6VPreA6k34k7lXOJXLGl51ID bR/mLO1bQSIhCd+q69g1gdMN2cMGMexvSpkDvc4U= 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-bs15.server.lan [172.19.170.183]) (via HTTP); Thu, 13 May 2021 04:50:18 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:1RipAoZ5opsQp5Mi3A2ZGIBjNs7m/CK6g4OpPec7pVYri3xu6NuoBlIwJ6miu8X2SOY0s QfITfDP5F5zc8cxtHIQDew5omKm7ANc21rzvJU+9JfqjwNRW5nE8aM8dYBAsH28tqfsjm0mzbVhF f2xgDCzRqtZWbYztwTbVBZM8cpSGRQ24RTW4UnZc6wLnDZQ32ptdffy5qFjZOu6knjbNJMH41JAz nW8yhMASD984b9v2xZ+eGAlSgf5xuX0X1mfO9T6J5T7RD1ows9JsSgaMqIuWIKVZZFwrZHbZASvV sQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:itEF3pdtFyw=:KfgGR7bCP5ggN36PmHNT8H XUKC11j0vGT2PUEUTHe8N4RNDShXyEp3XaBZLUCo4fdNJjR1H7pmDeZBjBpagvbiIhEN9qMGv i2hEojiop7Md/TYYNU1iVeVXF0MnsM2qRGHJ6UqFJg4eJyCr23fbiOsLGDzAWQri6R8ZNF57f gpDwoR7fBWTaQxFgcLnZxQ0pkdkk407mzSY3bMptke8agA21dSZTrV5XCMRykwrHCzHrxYioL 74pY9u7ucv6CZ9blyjCgAem2otkEFg/P1sZIwNhDbmWsfO413mT3bCRpvKxERhbbTsAZ4hywv wMAS5ugWIvow7udVYnbAMMOiQ6eaq68ml474TtXwOjh0qlH9r5dDMBj+U/bWHfTQY5SKp6Bs4 o/hyEQdiJEmUFKGd9Qyd0cWR4KVrAUPIJ5kVH8KQjzJMsCK/tL+ioyKAEEFsK8CDZYf2WfM4Q 1oFidisHFNvzW56J47KHyu5HCJYnma46D9+mn8/hU1B8jjH6uNa+7ZemAMkY4lkgVC59q6def HmEas1XfnITv37LYgnsnPrzzU4blrPIGXHHagvzv7K1sFp807ccvA+0svOxspfFdJP6N1m0o2 ytzsjnnEHDpXISCr9b/QBPDCeH/wFVCL3HT0Lnk0CpSNdGB/q6Z3F6RWWWfg1YxxVU5izh7b0 24i+lEh2OmIQvbok32yDU4/t/ezSGaz/dU+l5l+MLzkhDoVZEOEy0p/wcxUnkIM2Q2N7JaSKh F8MKKeHIorkyw3dHnFyGt3MGpwecJdUlGZciQTao1Cmgvkb0GeuPh82IcWkZHqiXifCygi2m Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:129732 Archived-At: > Sent: Thursday, May 13, 2021 at 12:36 AM > From: "Jean Louis" > To: pietru@caramail.com > Cc: monnier@iro.umontreal.ca, help-gnu-emacs@gnu.org > Subject: Re: headings for texinfo-mode using outline-minor-mode > > * pietru@caramail.com [2021-05-12 07:44]: > > > `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. Then, in each language mode, one simply calls the > > appropriate function. > > > That is the thought I assume each of us has. > > There are many modes, various macros, functions. Many modes do not > have its outline structure. Emacs Lisp mode does not have "outline" > defined, we can just virtualize it and think how to create > outline. Its structure would greatly depend of the style, and comments > definition, for example to start writing (defun on the beginning of > the line. Each user can have different comment definition. Being able to have different comment definition for headings would be very= valuable. I also like the idea that headings become different than code. This is be= cause, you could collapse code independently of headers. Currently code structures a= re being used as headers, a strategy which is faulty from my point of view. > Modes which could be used with outline-minor-mode are especially those > with lightweight markup languages and some modes use > outline-minor-mode anyway, so for these it could be done: > > adoc-mode and asciidoctor-mode > t2t-mode for txt2tags > markdown-mode > latex-mode and similar TeX macros, like context-mode > > I don't know for plain TeX-plain-tex-mode for example as \beginsection > is just one so far I know. TeX-plain-tex-mode is definitely usable for > reports that don't require elaborate structures. It is way easier to > create report with TeX-plain-tex-mode > > Hello there > > \beginsection > Here I am > > \bye > > Whoever now finds good outline-heading-alist post it here, please. Currently the major problem is in being able to got a good outline-heading= -alist that does the job. In texinfo.el there is an example on using outline-he= ading-alist, but when I tried doing the same, the headings were not being recognised. > -- > Jean > > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > Sign an open letter in support of Richard M. Stallman > https://stallmansupport.org/ > https://rms-support-letter.github.io/ > > =2D-------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy