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: Setting up user defined texinfo headlines using outline-heading-alist Date: Thu, 13 May 2021 14:29:25 +0200 Message-ID: References: <878s4m5mbj.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=sgnirk-e0ca85f1-e4d3-481c-845c-086cf52a357e Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 13 14:47: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 1lhAk1-0001I1-WE for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 14:47:02 +0200 Original-Received: from localhost ([::1]:34992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhAk1-00051h-25 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 08:47:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAT5-0004KS-Oa for help-gnu-emacs@gnu.org; Thu, 13 May 2021 08:29:31 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:39951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhAT3-0006En-6n for help-gnu-emacs@gnu.org; Thu, 13 May 2021 08:29:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620908966; bh=PrIcAD8+8ubw4+bcNPCQOZmKPkRV1ebLqQH95Mszq3Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=lBtLDDEOhVR9f5ta5QyOqdBEIawT4fzPBaI1Iorvl2zcKnw90Xe6AFcbzg8oWUs9h sI/7e+KC3SyIiahE/n2jdvOzSDBeTnIp15T1FWqUY9/Bijvg8P7bc35IGiBVdS9XkS W3QxByDZIpbnBbueSmoPm8dzuiOXWuH/6l99pbiE= 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); Thu, 13 May 2021 14:29:25 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:9Lzyx4YWwA1bkkFIH+gG95PbBBlbbf++1gV8w/TMgbD/TTFWpffLLY0bBavAQf/YoxjT9 4mkUjY9cp8jywX4MqnwgfQ+YO/K8nGBFjr9x4IzKe2kxP/e3/L0MLdyAlGvX0+M6fy3z/ArZHAPw wRi3hVcdcpM3ovxNLJS7h2xTFvqBTy66QKkJoEAWwPhRikeVdFJ2i6F/E7B/AqzxoQhdcud61YX2 KYaMkFPrDECwIu3PwoEYaZIrKPm/aZrR2odInw1nYOsupQ7yUv9hc0HFjdNJBHQztYybwAtWWenA C8= X-UI-Out-Filterresults: notjunk:1;V03:K0:zpg/4yLXltQ=:UqOGoot3vuDWfFdgDQmy5m L/Sk6myXv7tJRX9ryW4ppXZe2U3LPEJ8ztLiSyqpWXxhY11NTW2uCgrJOEHcAja5O1Gc/Ojlf AEfKdk+S35Xy43p6PmUNfDn7yADdoMfH6s9IZ+vhI8ih+wOnWMVnVp5ZxFkl7BlBhIxQkXkIC fr0BUCn7kFLBEL4OTT/yV5C+YkC67MLyr62AdZPOfRnSPoCUdyTiF3zeZNNBcjoHdZRx+14eB 1ElEXfUUXW3TXSKLhQkx8CuK2IJz9K5zVjbFK4ZFw00tkza2sQRYpcSWBXihPZELvMeAlMTpP UH1ax5F8uv1u63zXBAttWHFbpwP3B+X+pvSYODwxfMaBbMMdClJnyFvQPhTLrF/83YOB7lfTR YH3DgeESypKsoiydFQNhi5H0ToIIcbhV7dSAOwCXUQRetAjhJXwZ21GcKyPCJry2x6Si03dii xLNN2UybPRKyzH0MBqZ025B5gV0etNXticXTxcWOOS1TbAmXJePuPdi2jnGFtMxxMHuc3kdO2 9Isb4REtSk6tMwb7AnSZazwu3aNdygK25GlxjGoORBKwegqIYPJ1IRBRXieAImgb1QDyRWV5a uPoJywaxVRPtRTJBjVmR6H0tbcQhF6ZmBpYCZbu5pgY1IM9aMeNtDwdPQYGfPGe76t/VrMtqX 2/e+wDhhYiA5f1UmjhFAKXZwSld+WhKC+eU5rkoMcDxXBAJvbCK84sw76qi6D7vZKIxMYCwyv pRrapw44j8AdVJXExwA69FKRvdOPWUAmQbWKR0Rfs0ao3uSaA+yophFOnWnp7hjxyKXHfCHk Received-SPF: pass client-ip=212.227.17.20; 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:129748 Archived-At: --sgnirk-e0ca85f1-e4d3-481c-845c-086cf52a357e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am running GNU Emacs 27=2E1 build as x86_64-pc-linux-gnu with GTK+ Versio= n 3=2E22=2E30 and cairo version 1=2E15=2E10=2E I have a texinfo file (test=2Etexi attached) where I defined some addition= al sectioning commands (e=2Eg=2E @usec, @usebsec)=2E I customarily switch on outline-mi= nor-mode to see the headings=2E outline-minor-mode gives the possibility to define my own set= of headings (e=2Eg=2E @usec, @usebsec) by setting up "outline-heading-alist"=2E =20 With the default settings I get =20 @node uchapter-amcoh @unnumbered 6 @ Ameliorating Waveform Coherency=2E=2E=2E Have modified my init file with the following code that resets "outline-he= ading-alist" to include @usec, @usebsec as headings in addition to @unnumbered (defvar texinfo-hdlevels '( ("@chapter" =2E 2) ("@section" =2E 3) ("@subsection" =2E 4) ("@subsubsection" =2E 5) ;; -------------------------------------------------- ("@unnumbered" =2E 2) ("@unnumberedsec" =2E 3) ("@unnumberedsubsec" =2E 4) ("@unnumberedsubsubsec" =2E 5) ;; -------------------------------------------------- ("@appendix" =2E 2) ("@appendixsec" =2E 3) ("@appendixsubsec" =2E 4) ("@appendixsubsubsec" =2E 5) ;; -------------------------------------------------- ("@majorheading" 2) ;; -------------------------------------------------- ("@chapheading" 2) ("@heading" 3) ("@subheading" 4) ("@subsubheading" 5) ;; -------------------------------------------------- ("@uchap" =2E 2) ("@usec" =2E 2) ("@usubsec" =2E 3) ("@usubsubsec" =2E 4) )) (setq-local outline-heading-alist texinfo-hdlevels) I was expecting to see the following @node uchapter-amcoh @unnumbered 6 @ Ameliorating Waveform Coherency @usec @value{seclb} Abductive Reasoning=2E=2E=2E @usec @value{seclb} Parsimony over Complexity=2E=2E=2E @usubsec @value{seclb} The Claerbout Conjecture=2E=2E=2E @usec @value{seclb} Correlograms in Helioseismology=2E=2E=2E @usubsec @value{seclb} Solar Magnetic Cycle and the Interface Dynamo=2E=2E= =2E But I am only seeing=20 @node uchapter-amcoh @unnumbered 6 @ Ameliorating Waveform Coherency=2E=2E=2E >=20 > I have a variable =E2=80=98texinfo-section-list=E2=80=99 whose value is: --------------------- 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 > Sent: Thursday, May 13, 2021 at 2:35 AM > From: "Yuri Khan" > To: "Christopher Dimech" > Cc: "help-gnu-emacs" > Subject: Re: outline-heading-alist for elisp using ";; * " > > On Wed, 12 May 2021 at 19:43, Christopher Dimech wrot= e: >=20 > > Some have been trying to set outline-heading-alist fol/lowing the code= in "texinfo=2Eel"=2E > > I have also tried to set it up but have not been successful=2E >=20 > There is a group of people on this list, including you, > michael-franzese, pietru, steve-humphreys, and wael-zwaiter, who seem > to be working on a common project, have various difficulties, and post > requests for assistance that are hard to follow through=2E >=20 > You state an approach (=E2=80=9CI have tried this=E2=80=A6=E2=80=9D), fo= llowed by something > general like =E2=80=9CI have not been successful=E2=80=9D or =E2=80=9CI = encountered > difficulties=E2=80=9D or =E2=80=9CI need assistance=E2=80=9D, but it is = not readily clear how > to assist you=2E So you get unhelpful answers or no answers at all=2E >=20 > The standard assistance request form includes: >=20 > * Your software version(s) and operating system (if you feel it might > be relevant)=2E This is important because if you are using older > software, you won=E2=80=99t be able to use some solutions, or people wil= l say > it just works on newer versions=2E > * What high-level problem you are trying to solve=2E This is important > because sometimes people will say your approach is wrong and point you > at a better way to solve it=2E > * How you are trying to solve it=2E > * What concrete result you expected=2E > * What concrete result you observe instead=2E >=20 > Your above request could look like: >=20 > =3D=3D=3D > I am on GNU/Linux, running Emacs 27=2E1=2E >=20 > I have a variable =E2=80=98texinfo-section-list=E2=80=99 whose value is: >=20 > ((chapter 2) (section 3) (subsection 4) (subsubsection 5) > (unnumbered 2) (unnumberedsec 3) (unnumberedsubsec 4) > (unnumberedsubsubsec 5) > (mychapter 2) (mysection 3) (mysubsection 4)) >=20 > (note my custom section macros)=2E >=20 > I want to set up Emacs so that, when I open a texinfo file, > outline-minor-mode is enabled and configured to recognize section > macros listed in =E2=80=98texinfo-section-list=E2=80=99 as headings=2E >=20 > To that end, I=E2=80=99m trying this: >=20 > (defun my-texinfo-outline () > (setq-local outline-heading-alist > (mapcar (lambda (x) (cons (concat "@" (car x)) (cadr x))) > texinfo-section-list)) > (setq-local outline-regexp > (concat (regexp-opt (mapcar 'car outline-heading-alist) t) > "\\>"))) >=20 > (add-hook 'texinfo-mode-hook #'my-texinfo-outline) >=20 > When I open the attached texinfo file, put point on line 42 and press > C-c @ C-d (outline-hide-subtree), I expect the whole section up to > line 68 to be hidden but not further lines, because line 69 has a > custom section header; but Emacs hides everything up to line 86=2E > =3D=3D=3D >=20 > (and don=E2=80=99t forget to actually attach a sample file, as short as > possible to demonstrate the problem)=2E > --sgnirk-e0ca85f1-e4d3-481c-845c-086cf52a357e Content-Type: application/x-texinfo Content-Disposition: attachment; filename=test.texi @node uchapter-amcoh @unnumbered 6 @ Ameliorating Waveform Coherency @set SecLb @value{scl-abdreason} @node AbdReason @usec{@value{seclb}, Abductive Reasoning} @set show-hiroshi-gibbs-1997 @dfn{Abductive Reasoning} is a form of reasoning that is based on Misinterpretation (e.g., dubious inferences) or on Parsimonious Schemes. Misinterpretation highlights the problem that wrong inferences can be made even if the inference is based on experimental data. Parsimony is based on simplicity. Occam Razor, for instance, adopts the statement that when one is confronted by multiple hypotheses about the same observation, the hypotheses with the fewest assumptions is selected @minus{} @ a strategy that is also in accordance with English Cosmologist Stephen William Hawking, German Polymath Gottfried Wilhelm Leibniz and English Polymath Isaac Newton @ref{bibl-hiroshi-gibbs-1997,, Hiroshi & Gibbs (1997)}@ftnote{Hiroshi & Gibbs (1997): What is Occam's Razor?}. @set seclb @value{scl-prsm-ovr-cplx} @node prsm-ovr-cplx @usec{@value{seclb}, Parsimony over Complexity} @set seclb @value{scl-claerbout-conject} @node claerbout-conject @usubsec{@value{seclb}, The Claerbout Conjecture} @set show-fichtner-tsai-2019 @set show-claerbout-1968 Conceptually, computing the Interstation Impulse Response of microseismiocally excited waves is represented by the Green Function, which may be extracted by computing the Time Derivative of the Interstation Cross Correlation @minus{} @ a simple measure of waveform similarity that permits signal identification @ref{bibl-fichtner-tsai-2019,, Fichtner & Tsai (2019)}@ftnote{Fichtner & Tsai (2019): Theoretical foundations of noise interferometry.}. The use of Cross Correlation was first conjectured by American Geophysicist Jon F.@: Claerbout after showing that the reflectivity response of a one dimensional (1-D) layered structure from a surface source and a surface receiver is one side of the autocorrelation of the seismogram recorded at the same surface receiver but transmitted from a source at depth @ref{bibl-claerbout-1968,, Claerbout (1968)}@ftnote{Claerbout (1968): Synthesis of a layered medium from its acoustic transmission response.}. The conjecture is appealing because the Travel Time and the Wavelet Shape obtained, are dependent on the subsurface properties of the intervening medium. Thus, instead of isolating actual excitation sources as is done in Earthquake Seismology, a virtual pair acting as source and receiver are used to map subsurface inhomogeneities in ways similar to reflection seismology, routinely used in the exploration of oil and gas reservoirs. @set seclb @value{scl-clheliosm} @node clheliosm @usec{@value{seclb}, Correlograms in Helioseismology} @set show-duvall-jefferies-etal-1993 The first application and confirmation of the Claerbout Correlation Conjecture was in Helioseismology, specifically, the introduction of Time Distance @ref{bibl-duvall-jefferies-etal-1993,, Duval@comma{} Jefferies et al.@: (1993)}@ftnote{Duval@comma{} Jefferies et al.@: (1993): Time-distance helioseismology.}. Discussions on the Helioseismic results follow. @set seclb @value{scl-smgcycle-itfdynmech} @node sunspots-mgactivity @usubsec{@value{seclb}, Solar Magnetic Cycle and the Interface Dynamo} @set show-leighton-noyes-simon-1962 @set show-howard-1967 @set show-ulrich-1970 @set show-leibacher-stein-1971 Through satellite and computer technology, Astrophysics has developed most rapidly during recent years, making it possible to study the different physical processes taking place in stars. The discovery of propagating sound waves on the Surface of the Sun @ref{bibl-leighton-noyes-simon-1962,, Leighton@comma{} Noyes & Simon (1962)}@ftnote{Leighton@comma{} Noyes & Simon (1962): Velocity Fields in the solar atmosphere.@: I.@: Preliminary Report.} (see also @ref{bibl-howard-1967,, Howard (1967)}@ftnote{Howard (1967): Velocity Fields in the solar atmosphere.}), and their understanding (i.e., the physical and mathematical explanation) as described by @ref{bibl-ulrich-1970,, Ulrich (1970)}@ftnote{Ulrich (1970): The five minute oscillations on the solar surface.} (and independently by @ref{bibl-leibacher-stein-1971,, Leibacher & Stein (1971)}@ftnote{Leibacher & Stein (1971): A new description of the solar five-minute oscillation.}) has led to the development of Helioseismology. The common theme is the Virtual Source Correlation Technique, that provided the first important insight into the Subsurface Structures (i.e., the shallow model) and the Dynamic Nature (e.g., Plasma Downflows) of Sunspots. To put things in perspective, the Virtual Source Correlation Technique follows the same strategy for mapping the Internal Structure of the Earth using Surface Wave Microseismicity driven by Atmosphere Ocean Seafloor Coupling. --sgnirk-e0ca85f1-e4d3-481c-845c-086cf52a357e--