🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98421

outline-mode show-children

#98421
From: Ross Hoffman
Date: Fri, 09 Aug 1991 13:12
55 lines
2091 bytes
Dear GNU Emacs,

Any help to fix either outline-mode's show-children or my
understanding of what it should do would be appreciated.  An email
reply would be appreciated.  Thanks.  And thanks for GNU Emacs.

	>Ross

@chapter

I'm using GNU Emacs 18.55.7.

Outline-mode's show-children (C-c C-i) does not work the way I
thought it should work.

Here I'm using the outline-regexp described in the manual (Sixth
Edition, Version 18, March 1987):

;;; Local Variables: ***
;;; mode:outline ***
;;; outline-regexp:"@chap\\|@\\(sub\\)*section" ***
;;; End: ***

If I hide the sections or subsections, C-c C-i will not show them,
but C-u 3 C-c C-i will.

@section
1
@subsection
1.1
@subsection
1.2
@section
2
@subsection
2.1
@subsection
2.1

In this example the lengths of the matching regular expressions for
the first three levels of the outline are 5, 8 and 11.  In outline
mode in this example, the outline-level function will return one of
these values since according to C-h f outline-level

outline-level:
Return the depth to which a statement is nested in the outline.
Point must be at the beginning of a header line.
This is actually the length of whatever outline-regexp matches.

However, show-children is looking for headings only one level deeper
than the current heading unless an optional argument is given.

In the file in which I found this behavior, I am using the regexp:

"C\\*\\*\\*\\*\\|C\\*\\*   \\|C\\*    +\\([0-9]+\\.\\)*[0-9]"
Technical Details
Message-ID: <9108091312.AA21705@ecmwf.co.uk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!ecmwf.co.UK!das

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,cd3bd217ebcd7aaa,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-08-09 06:12:03 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!ecmwf.co.UK!das
From: das@ecmwf.co.UK (Ross Hoffman)
Newsgroups: gnu.emacs.bug
Subject: outline-mode show-children
Message-ID: <9108091312.AA21705@ecmwf.co.uk>
Date: 9 Aug 91 13:12:03 GMT
Sender: gnulists@ai.mit.edu
Reply-To: Ross.Hoffman@co.uk.ecmwf.co.uk
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 55
Approved: bug-gnu-emacs@prep.ai.mit.edu