;ELC   
;;; Compiled by pot@pot.cnuce.cnr.it on Tue Mar 18 15:49:03 2003
;;; from file /home/pot/gnu/emacs-pretest.new/lisp/obsolete/ooutline.el
;;; in Emacs version 21.3
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
	 (< (aref emacs-version (1- (length emacs-version))) ?A)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`ooutline.el' was compiled for Emacs 19.29 or later"))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(custom-declare-group 'outlines nil "Support for hierarchical outlining" :prefix "outline-" :group 'editing)
#@266 *Regular expression to match the beginning of a heading.
Any line whose beginning matches this regexp is considered to start a heading.
The recommended way to set this is with a Local Variables: list
in the file it applies to.  See also outline-heading-end-regexp.
(custom-declare-variable 'outline-regexp 'nil '(#$ . -737) :type '(choice regexp (const nil)) :group 'outlines)
(byte-code "\300\301!\204 \302\301\303\"\210\300\207" [default-value outline-regexp set-default "[*\f]+"] 3)
#@286 *Regular expression to match the end of a heading line.
You can assume that point is at the beginning of a heading when this
regexp is searched for.  The heading ends at the end of the match.
The recommended way to set this is with a "Local Variables:" list
in the file it applies to.
(custom-declare-variable 'outline-heading-end-regexp '"[\n]" '(#$ . -1231) :type 'regexp :group 'outlines)
(byte-code "\301B\303\301!\204\f \304	\204s \305 \306	\307\310#\210\306	\311\312#\210\306	\313\314#\210\306	\315\316#\210\306	\317\320#\210\306	\321\322#\210\306	\323\324#\210\306	\325\326#\210\306	\327\330#\210\306	\331\332#\210\306	\333\334#\210\306	\335\336#\210\306	\337\340#\210\306	\341\342#\210\306	\343\344#\210\306	\345\346#\210\302B\303\302!\204 \304\n\204 \305 \306\n\347\350\305\350!B#\210\306\n\351\352#\210\306\n\353\354#\210\306\n\355\356#\210\306\n\357\360#\210\306\n\361\362#\210\306\n\363\364#\210\306\n\365\366\305\366!B#\210\306\n\367\370#\210\306\n\371\372#\210\306\n\373\374#\210\306\n\375\376#\210\306\n\377\201@ #\210\306\n\201A \201B \305\201B !B#\210\306\n\201C \201D #\210\306\n\201E \201F #\210\306\n\201G \201H #\210\306\n\201I \201J #\210\306\n\201K \201L #\210\304\207" [current-load-list outline-mode-prefix-map outline-mode-menu-bar-map boundp nil make-sparse-keymap define-key "" outline-next-visible-heading "" outline-previous-visible-heading "	" show-children "" show-subtree "" hide-subtree "" outline-up-heading "" outline-forward-same-level "" outline-backward-same-level "" hide-body "" show-all "" hide-entry "" show-entry "\f" hide-leaves "" show-branches "" hide-sublevels "" hide-other [hide] "Hide" [hide hide-other] ("Hide Other" . hide-other) [hide hide-sublevels] ("Hide Sublevels" . hide-sublevels) [hide hide-subtree] ("Hide Subtree" . hide-subtree) [hide hide-entry] ("Hide Entry" . hide-entry) [hide hide-body] ("Hide Body" . hide-body) [hide hide-leaves] ("Hide Leaves" . hide-leaves) [show] "Show" [show show-subtree] ("Show Subtree" . show-subtree) [show show-children] ("Show Children" . show-children) [show show-branches] ("Show Branches" . show-branches) [show show-entry] ("Show Entry" . show-entry) [show show-all] ("Show All" . show-all) [headings] "Headings" [headings outline-backward-same-level] ("Previous Same Level" . outline-backward-same-level) [headings outline-forward-same-level] ("Next Same Level" . outline-forward-same-level) [headings outline-previous-visible-heading] ("Previous" . outline-previous-visible-heading) [headings outline-next-visible-heading] ("Next" . outline-next-visible-heading) [headings outline-up-heading] ("Up" . outline-up-heading)] 6)
#@2 
(defvar outline-mode-map nil (#$ . 3890))
(byte-code "\204 \304 	\244\305\306\n#\210\305\307#\210\304\207" [outline-mode-map text-mode-map outline-mode-prefix-map outline-mode-menu-bar-map make-sparse-keymap define-key "" [menu-bar]] 4)
#@67 Non-nil if using Outline mode as a minor mode of some other mode.
(custom-declare-variable 'outline-minor-mode 'nil '(#$ . 4141) :type 'boolean :group 'outlines)
(byte-code "\301\302!\210\303\302\304\305#\210\302\236\204 \306\307C\"\301\207" [minor-mode-alist make-variable-buffer-local outline-minor-mode put permanent-local t append (outline-minor-mode " Outl")] 4)
#@54 Additional expressions to highlight in Outline mode.
(defvar outline-font-lock-keywords '(("^\\([*]+\\)[ 	]*\\([^\n]+\\)?[ 	]*[\n]" (1 font-lock-string-face) (2 (let ((len (- (match-end 1) (match-beginning 1)))) (or (cdr (assq len '((1 . font-lock-function-name-face) (2 . font-lock-keyword-face) (3 . font-lock-comment-face)))) font-lock-variable-name-face)) nil t)) ("\\[\\([[:upper:]][[:alpha:]]+\\)*[0-9]+\\]" . font-lock-type-face)) (#$ . 4519))
#@2063 Set major mode for editing outlines with selective display.
Headings are lines which start with asterisks: one for major headings,
two for subheadings, etc.  Lines not starting with asterisks are body lines. 

Body text or subheadings under a heading can be made temporarily
invisible, or visible again.  Invisible lines are attached to the end 
of the heading, so they move with it, if the line is killed and yanked
back.  A heading with text hidden under it is marked with an ellipsis (...).

Commands:\<outline-mode-map>
\[outline-next-visible-heading]   outline-next-visible-heading      move by visible headings
\[outline-previous-visible-heading]   outline-previous-visible-heading
\[outline-forward-same-level]   outline-forward-same-level        similar but skip subheadings
\[outline-backward-same-level]   outline-backward-same-level
\[outline-up-heading]   outline-up-heading		    move from subheading to heading

\[hide-body]	make all text invisible (not headings).
\[show-all]	make everything in buffer visible.

The remaining commands are used when point is on a heading line.
They apply to some of the body or subheadings of that heading.
\[hide-subtree]   hide-subtree	make body and subheadings invisible.
\[show-subtree]   show-subtree	make body and subheadings visible.
\[show-children]   show-children	make direct subheadings visible.
		 No effect on body, or subheadings 2 or more levels down.
		 With arg N, affects subheadings N levels down.
\[hide-entry]	   make immediately following body invisible.
\[show-entry]	   make it visible.
\[hide-leaves]	   make body under heading and under its subheadings invisible.
		     The subheadings remain visible.
\[show-branches]  make all subheadings at all levels visible.

The variable `outline-regexp' can be changed to control what is a heading.
A line is a heading if `outline-regexp' matches something at the
beginning of the line.  The longer the match, the deeper the level.

Turning on outline mode calls the value of `text-mode-hook' and then of
`outline-mode-hook', if they are non-nil.
(defalias 'outline-mode #[nil "\306 \210\307\310	!\210\311\312\313\304\314\"\210\f\315!\210\316\317!\210\320\321R\316\322!\210\316\323!\210\320\321R\316\324!\210\325\316\326!\210\327\326\330\"\210\331\332\333\"\207" [selective-display outline-mode-map mode-name major-mode text-mode-abbrev-table local-abbrev-table kill-all-local-variables t use-local-map "Outline" outline-mode define-abbrev-table nil set-syntax-table make-local-variable paragraph-start "\\|\\(" "\\)" auto-fill-inhibit-regexp paragraph-separate font-lock-defaults (outline-font-lock-keywords t) change-major-mode-hook add-hook show-all run-hooks text-mode-hook outline-mode-hook text-mode-syntax-table outline-regexp] 4 (#$ . 4980) nil])
#@202 *Prefix key to use for Outline commands in Outline minor mode.
The value of this variable is checked as part of loading Outline mode.
After that, changing the prefix key requires manipulating keymaps.
(custom-declare-variable 'outline-minor-mode-prefix '"@" '(#$ . -7781) :type 'string :group 'outlines)
(byte-code "\301B\306\301!\204\f \307	\204 \310 \311	\312\n#\210\311	\f#\210\313\236\204+ \313	BB\307\207" [current-load-list outline-minor-mode-map outline-mode-menu-bar-map outline-minor-mode-prefix outline-mode-prefix-map minor-mode-map-alist boundp nil make-sparse-keymap define-key [menu-bar] outline-minor-mode] 4)
#@166 Toggle Outline minor mode.
With arg, turn Outline minor mode on if arg is positive, off otherwise.
See the command `outline-mode' for more information on this mode.
(defalias 'outline-minor-mode #[(&optional arg) "\204	 	?\202 \303!\304V\211\203 \305\306\307!\210\202 \310	\204( \311ed\312#\210\313 \207" [arg outline-minor-mode selective-display prefix-numeric-value 0 t run-hooks outline-minor-mode-hook nil outline-flag-region 10 force-mode-line-update] 5 (#$ . 8423) "P"])
#@130 Function of no args to compute a header's nesting level in an outline.
It can assume point is at the beginning of a header line.
(defvar outline-level 'outline-level (#$ . 8915))
#@188 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 number of characters that `outline-regexp' matches.
(defalias 'outline-level #[nil "\212\301!\210\302\225\302\224Z)\207" [outline-regexp looking-at 0] 2 (#$ . 9101)])
#@140 Skip forward to just before the next heading line.
If there's no following heading line, stop before the newline
at the end of the buffer.
(defalias 'outline-next-preface #[nil "\301\302\303Q\304\305#\203 \306\224b\210h\307>\205 \310u\207" [outline-regexp re-search-forward "[\n]\\(" "\\)" nil move 0 (10 13) -1] 4 (#$ . 9411)])
#@53 Move to the next (possibly invisible) heading line.
(defalias 'outline-next-heading #[nil "\301\302\303Q\304\305#\205 \306\224Tb\207" [outline-regexp re-search-forward "[\n]\\(" "\\)" nil move 0] 4 (#$ . 9750) nil])
#@114 Move to previous heading line, or beg of this line if it's a heading.
Only visible heading lines are considered.
(defalias 'outline-back-to-heading #[nil "\301 \210\302 \206 \303\304\305Q\306\307#\206 \310\311!\207" [outline-regexp beginning-of-line outline-on-heading-p re-search-backward "^\\(" "\\)" nil t error "before first heading"] 4 (#$ . 9976)])
#@51 Return t if point is on a (visible) heading line.
(defalias 'outline-on-heading-p #[nil "\212\301 \210n\205 \302!)\207" [outline-regexp beginning-of-line looking-at] 2 (#$ . 10340)])
(defalias 'outline-end-of-heading #[nil "\301\302\303#\205\n \304u\207" [outline-heading-end-regexp re-search-forward nil move -1] 4])
#@178 Move to the next visible heading line.
With argument, repeats or can move backward if negative.
A heading line is one that starts with a `*' (or that
`outline-regexp' matches).
(defalias 'outline-next-visible-heading #[(arg) "\302W\203\f \303 \210\202 \304\210\305\306	\307Q\304\310$\204 \311\312!\210\303 \207" [arg outline-regexp 0 beginning-of-line nil re-search-forward "^\\(" "\\)" t error ""] 5 (#$ . 10668) "p"])
#@173 Move to the previous heading line.
With argument, repeats or can move forward if negative.
A heading line is one that starts with a `*' (or that
`outline-regexp' matches).
(defalias 'outline-previous-visible-heading #[(arg) "\301[!\207" [arg outline-next-visible-heading] 2 (#$ . 11100) "p"])
#@169 Hides or shows lines from FROM to TO, according to FLAG.
If FLAG is `\n' (newline character) then text is shown,
while if FLAG is `\^M' (control-M) the text is hidden.
(defalias 'outline-flag-region #[(from to flag) "\304\305	\n\306U\203 \307\202 \306\310%)\207" [buffer-read-only from to flag nil subst-char-in-region 10 13 t] 6 (#$ . 11401)])
#@48 Hide the body directly following this heading.
(defalias 'hide-entry #[nil "\300 \210\301 \210\212\302`\303 \210`\304#)\207" [outline-back-to-heading outline-end-of-heading outline-flag-region outline-next-preface 13] 4 (#$ . 11757) nil])
#@48 Show the body directly following this heading.
(defalias 'show-entry #[nil "\212\300`\301 \210`\302#)\207" [outline-flag-region outline-next-preface 10] 4 (#$ . 12002) nil])
#@37 Hide all of buffer except headings.
(defalias 'hide-body #[nil "\300ed\"\207" [hide-region-body] 3 (#$ . 12182) nil])
#@54 Hide all body lines in the region, but not headings.
(defalias 'hide-region-body #[(start end) "\212\214	}\210eb\210\302 \203 \303 \210m?\2056 \304`\305 \210`\306#\210m\204 \307\310!\203- \311\202. \312u\210\303 \210\202 *\207" [start end outline-on-heading-p outline-end-of-heading outline-flag-region outline-next-preface 13 looking-at "[\n][\n]" 2 1] 4 (#$ . 12306)])
#@37 Show all of the text in the buffer.
(defalias 'show-all #[nil "\300ed\301#\207" [outline-flag-region 10] 4 (#$ . 12689) nil])
#@54 Hide everything after this heading at deeper levels.
(defalias 'hide-subtree #[nil "\300\301!\207" [outline-flag-subtree 13] 2 (#$ . 12821) nil])
#@52 Hide all body after this heading at deeper levels.
(defalias 'hide-leaves #[nil "\300 \210\301 \210\302`\303 \210`\"\207" [outline-back-to-heading outline-end-of-heading hide-region-body outline-end-of-subtree] 3 (#$ . 12973) nil])
#@54 Show everything after this heading at deeper levels.
(defalias 'show-subtree #[nil "\300\301!\207" [outline-flag-subtree 10] 2 (#$ . 13211) nil])
#@72 Hide everything but the top LEVELS levels of headers, in whole buffer.
(defalias 'hide-sublevels #[(levels) "\302W\203\n \303\304!\210S\212eb\210o\203 \305 \204 \306 \205= \212\307 \210`)\310`	\311#\210\312V\2036 \313!\210	b\210)\202 )\207" [levels end 1 error "Must keep at least one level of headers" outline-on-heading-p outline-next-heading outline-end-of-subtree outline-flag-region 13 0 show-children] 4 (#$ . 13363) "p"])
#@70 Hide everything except for the current body and the parent headings.
(defalias 'hide-other #[nil "\302\303!\210``\212\304\305\306\307#\205 g\310=)\2057 \212\311 \210	`=\203. \312 \210\313	`\314#\210\2023 \315 \210`)\202 *\207" [pos last hide-sublevels 1 re-search-backward "[\n]" nil t 13 beginning-of-line outline-next-heading outline-flag-region 10 show-children] 4 (#$ . 13807) nil])
(defalias 'outline-flag-subtree #[(flag) "\212\301 \210\302 \210\303`\304 \210`#)\207" [flag outline-back-to-heading outline-end-of-heading outline-flag-region outline-end-of-subtree] 4])
(defalias 'outline-end-of-subtree #[nil "\304 \210`\305 m\204! \n\204  	V\203! \306\307 \210\202\n h\310>\2052 \311u\210h\312>\2052 \311u+\207" [outline-level level first opoint outline-back-to-heading t nil outline-next-heading (10 13) -1 (10 13)] 3])
#@61 Show all subheadings of this heading, but not their bodies.
(defalias 'show-branches #[nil "\300\301!\207" [show-children 1000] 2 (#$ . 14655) nil])
#@183 Show all direct subheadings of this heading.
Prefix arg LEVEL is how many levels below the current level should be shown.
Default is enough to cause the following heading to appear.
(defalias 'show-children #[(&optional level) "\203\n \303!\202# \212\304 \210	 \305 \210m\203 \306\202\" \306	 \nZ]*\212\214\304 \210	 \\`\307 \210m\203: d\202< `T}\210eb\210m?\205q \305 \210m?\205q 	 X\203A \212\310\212\311u\210h\312>\203d \311u\210`)\313 \210`\314#\210)\202A *\207" [level outline-level start-level prefix-numeric-value outline-back-to-heading outline-next-heading 1 outline-end-of-subtree outline-flag-region -1 (10 13) outline-end-of-heading 10] 4 (#$ . 14811) "P"])
#@104 Move to the heading line of which the present line is a subheading.
With argument, move up ARG levels.
(defalias 'outline-up-heading #[(arg) "\303 \210 \304=\203 \305\306!\210 \304V\2058 	\307V\2058 o?\2058   \nW\2041 \310\304!\210\202# 	S)\202 \207" [outline-level arg present-level outline-back-to-heading 1 error "" 0 outline-previous-visible-heading] 2 (#$ . 15496) "p"])
#@128 Move forward to the ARG'th subheading at same level as this one.
Stop at the first and last subheadings of a superior heading.
(defalias 'outline-forward-same-level #[(arg) "\302 \210\303V\205% \212\304 )\211\203 	b\210S\202! \303\305\306!\210)\202 \207" [arg point-to-move-to outline-back-to-heading 0 outline-get-next-sibling error ""] 3 (#$ . 15887) "p"])
#@74 Move to next heading of the same level, and return point or nil if none.
(defalias 'outline-get-next-sibling #[nil " \302\303!\210 	V\203 m\204 \302\303!\210\202  	W?\205\" `)\207" [outline-level level outline-next-visible-heading 1] 2 (#$ . 16259)])
#@129 Move backward to the ARG'th subheading at same level as this one.
Stop at the first and last subheadings of a superior heading.
(defalias 'outline-backward-same-level #[(arg) "\302 \210\303V\205% \212\304 )\211\203 	b\210S\202! \303\305\306!\210)\202 \207" [arg point-to-move-to outline-back-to-heading 0 outline-get-last-sibling error ""] 3 (#$ . 16524) "p"])
#@74 Move to next heading of the same level, and return point or nil if none.
(defalias 'outline-get-last-sibling #[nil " \302\303!\210 	V\203 o\204 \302\303!\210\202  	W?\205\" `)\207" [outline-level level outline-previous-visible-heading 1] 2 (#$ . 16898)])
(provide 'outline)
