;ELC ;;; compiled by rms@mole.gnu.ai.mit.edu on Sat Sep 3 18:14:05 1994 ;;; from file /home/fsf/rms/e19/lisp/outline.el ;;; emacs version 19.25.94.1. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/home/fsf/rms/e19/lisp/outline.el' was compiled for Emacs 19")) (defvar outline-regexp nil "\ *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.") (byte-code "! \"" [default-value outline-regexp set-default "[*\f]+"] 3) (defvar outline-heading-end-regexp "[\n ]" "\ *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.") (byte-code "! o  # # # # # # # # # # # # # # # #!x%%, %%!B#%#%#%#%#%#%#%!B#%#%#%#%#%#%@AÁA!B#%BC#%DE#%FG#%HI#%JK#‡" [boundp outline-mode-prefix-map 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 outline-mode-menu-bar-map [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) (defvar outline-mode-map nil "\ ") (byte-code " \n ##" [outline-mode-map make-sparse-keymap text-mode-map define-key "" outline-mode-prefix-map [menu-bar] outline-mode-menu-bar-map] 4) (defvar outline-minor-mode nil "\ Non-nil if using Outline mode as a minor mode of some other mode.") (byte-code "!#  C\"" [make-variable-buffer-local outline-minor-mode put permanent-local t minor-mode-alist append (outline-minor-mode " Outl")] 4) (defalias 'outline-mode #[nil " \f!\"\n\f!!R!!R!\"\"" [kill-all-local-variables t selective-display use-local-map outline-mode-map "Outline" mode-name outline-mode major-mode define-abbrev-table text-mode-abbrev-table nil local-abbrev-table set-syntax-table text-mode-syntax-table make-local-variable paragraph-start "\\|^\\(" outline-regexp "\\)" auto-fill-inhibit-regexp paragraph-separate change-major-mode-hook add-hook show-all run-hooks text-mode-hook outline-mode-hook] 4 "\ 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-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." nil]) (defvar outline-minor-mode-prefix "" "\ *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.") (byte-code "!   # #\n- B\nB\n‡" [boundp outline-minor-mode-map nil make-sparse-keymap define-key [menu-bar] outline-mode-menu-bar-map outline-minor-mode-prefix outline-mode-prefix-map outline-minor-mode minor-mode-map-alist] 4) (defalias 'outline-minor-mode #[(&optional arg) " ?!V! (ed# !" [arg outline-minor-mode prefix-numeric-value 0 t selective-display run-hooks outline-minor-mode-hook nil outline-flag-region 10 set-buffer-modified-p buffer-modified-p] 5 "\ 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." "P"]) (defvar outline-level (quote outline-level) "\ 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.") (defalias 'outline-level #[nil " !•”Z)" [looking-at outline-regexp 0] 2 "\ 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-next-preface #[nil "\nQ#Ɣbh>u" [re-search-forward "[\n ]\\(" outline-regexp "\\)" nil move 0 (10 13) -1] 4 "\ 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-heading #[nil "\nQ#ƔTb" [re-search-forward "[\n ]\\(" outline-regexp "\\)" nil move 0] 4 "\ Move to the next (possibly invisible) heading line." nil]) (defalias 'outline-back-to-heading #[nil "y \fQ#!" [0 outline-on-heading-p re-search-backward "^\\(" outline-regexp "\\)" nil t error "before first heading"] 4 "\ Move to previous heading line, or beg of this line if it's a heading. Only visible heading lines are considered."]) (defalias 'outline-on-heading-p #[nil "yn \n!)" [0 looking-at outline-regexp] 2 "\ Return t if point is on a (visible) heading line."]) (defalias (quote outline-end-of-heading) #[nil " #\nu" [re-search-forward outline-heading-end-regexp nil move -1] 4]) (defalias 'outline-next-visible-heading #[(arg) "W\fy Q$!y‡" [arg 0 nil re-search-forward "^\\(" outline-regexp "\\)" t error ""] 5 "\ 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)." "p"]) (defalias 'outline-previous-visible-heading #[(arg) " [!" [outline-next-visible-heading arg] 2 "\ 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)." "p"]) (defalias 'outline-flag-region #[(from to flag) " \f Uǂ %)" [nil buffer-read-only subst-char-in-region from to flag 10 13 t] 6 "\ 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 'hide-entry #[nil " ` `#)" [outline-back-to-heading outline-end-of-heading outline-flag-region outline-next-preface 13] 4 "\ Hide the body directly following this heading." nil]) (defalias 'show-entry #[nil "` `#)" [outline-flag-region outline-next-preface 10] 4 "\ Show the body directly following this heading." nil]) (defalias 'hide-body #[nil "ed\"" [hide-region-body] 3 "\ Hide all of buffer except headings." nil]) (defalias 'hide-region-body #[(start end) " }eb  m?6` `#m!-ɂ.u *" [start end outline-on-heading-p outline-end-of-heading outline-flag-region outline-next-preface 13 looking-at "[\n ][\n ]" 2 1] 4 "\ Hide all body lines in the region, but not headings."]) (defalias 'show-all #[nil "ed#" [outline-flag-region 10] 4 "\ Show all of the text in the buffer." nil]) (defalias 'hide-subtree #[nil "!" [outline-flag-subtree 13] 2 "\ Hide everything after this heading at deeper levels." nil]) (defalias 'hide-leaves #[nil " ` `\"" [outline-back-to-heading outline-end-of-heading hide-region-body outline-end-of-subtree] 3 "\ Hide all body after this heading at deeper levels." nil]) (defalias 'show-subtree #[nil "!" [outline-flag-subtree 10] 2 "\ Show everything after this heading at deeper levels." nil]) (defalias 'hide-sublevels #[(levels) "W\n!Sebo  @ `)`#V8!b))" [levels 1 error "Must keep at least one level of headers" outline-on-heading-p outline-next-heading outline-end-of-subtree end outline-flag-region 13 0 show-children] 4 "\ Hide everything but the top LEVELS levels of headers, in whole buffer." "p"]) (defalias 'hide-other #[nil "!``#g=)7y `=. `#3 `)*" [hide-sublevels 1 pos last re-search-backward "[\n ]" nil t 13 0 outline-next-heading outline-flag-region 10 show-children] 4 "\ Hide everything except for the current body and the parent headings." nil]) (byte-code "\"\"" [defalias outline-flag-subtree #[(flag) " ` `\f#)" [outline-back-to-heading outline-end-of-heading outline-flag-region outline-end-of-subtree flag] 4] outline-end-of-subtree #[nil " `\n m!\f\n V! \nh>2uh>2u+" [outline-back-to-heading t outline-level level first opoint nil outline-next-heading (10 13) -1 (10 13)] 3]] 3) (defalias 'show-branches #[nil "!" [show-children 1000] 2 "\ Show all subheadings of this heading, but not their bodies." nil]) (defalias 'show-children #[(&optional level) "\n!#  mƂ\" \fZ]*  \\` m:d<`T}ebm?q m?q XAȊuh>du`) `#)A*" [level prefix-numeric-value outline-back-to-heading outline-level start-level outline-next-heading 1 outline-end-of-subtree outline-flag-region -1 (10 13) outline-end-of-heading 10] 4 "\ 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." "P"]) (defalias 'outline-up-heading #[(arg) " =! V; V;o?;  W3!$ Z)" [outline-back-to-heading outline-level 1 error "" arg 0 present-level outline-previous-visible-heading] 2 "\ Move to the heading line of which the present line is a subheading. With argument, move up ARG levels." "p"]) (defalias 'outline-forward-same-level #[(arg) " V% )\fb S!!)" [outline-back-to-heading arg 0 outline-get-next-sibling point-to-move-to error ""] 3 "\ Move forward to the ARG'th subheading at same level as this one. Stop at the first and last subheadings of a superior heading." "p"]) (defalias 'outline-get-next-sibling #[nil " ! Vm! W?\"`)" [outline-level level outline-next-visible-heading 1] 2 "\ Move to next heading of the same level, and return point or nil if none."]) (defalias 'outline-backward-same-level #[(arg) " V% )\fb S!!)" [outline-back-to-heading arg 0 outline-get-last-sibling point-to-move-to error ""] 3 "\ Move backward to the ARG'th subheading at same level as this one. Stop at the first and last subheadings of a superior heading." "p"]) (defalias 'outline-get-last-sibling #[nil " ! Vo! W?\"`)" [outline-level level outline-previous-visible-heading 1] 2 "\ Move to next heading of the same level, and return point or nil if none."]) (provide (quote outline))