;ELC ;;; Compiled by cyd@localhost on Mon Apr 23 22:21:01 2007 ;;; from file /home/cyd/emacs/lisp/outline.el ;;; in Emacs version 22.0.99 ;;; 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 "`outline.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'outlines nil "Support for hierarchical outlining." :prefix "outline-" :group 'editing) #@400 Regular expression to match the beginning of a heading. Any line whose beginning matches this regexp is considered to start a heading. Note that Outline mode only checks this regexp at the start of a line, so the regexp need not (and usually does not) start with `^'. 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 '"[*\f]+" '(#$ . 672) :type '(choice regexp (const nil)) :group 'outlines) #@285 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" '(#$ . 1194) :type 'regexp :group 'outlines) (byte-code "\303B\304\303!\204\227\305\303\306 \307 \310\311#\210\307 \312\313#\210\307 \314\315#\210\307 \316\317#\210\307 \320\321#\210\307 \322\323#\210\307 \324\325#\210\307 \326\327#\210\307 \330\331#\210\307 \332\333#\210\307 \334\335#\210\307 \336\337#\210\307 \340\341#\210\307 \342\343#\210\307 \344\345#\210\307 \346\347#\210\307 \350\351#\210\307 \352\353#\210\307 \354\355#\210\307 \356\357#\210\307 \360\361#\210\307 \362\363#\210 )\"\210\302B\304\302!\204\234\305\302\306 \307 \364\365\306\365!B#\210\307 \366\367#\210\307 \370\371#\210\307 \372\373#\210\307 \374\375#\210\307 \376\377#\210\307 \201@\201A#\210\307 \201B\201C\306\201C!B#\210\307 \201D\201E#\210\307 \201F\201G#\210\307 \201H\201I#\210\307 \201J\201K#\210\307 \201L\201M#\210\307 \201N\201O\306\201O!B#\210\307 \201P\201Q#\210\307 \201R\201S#\210\307 \201T\201U#\210\307 \201V\201W#\210\307 \201X\201Y#\210\307 \201Z\201[#\210\307 \201\\\201]#\210\307 \201^\201_#\210\307 \201`\201a#\210\307 \201b\201c#\210\307 \201d\201e#\210 )\"\210\201fB\304\201f!\204\326\305\201f\306 \307 \201g\201h\306\201h!\201i\201j\201k\201l\n\"\"A\244B#\210 )\"\210\201mB\304\201m!\204\375\305\201m\306 \307 \336 #\210\307 \201n\n#\210 )\"\210\303\207" [current-load-list map outline-mode-menu-bar-map outline-mode-prefix-map default-boundp set-default make-sparse-keymap define-key "@" outline-mark-subtree "" 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-move-subtree-up "" outline-move-subtree-down [(control 60)] outline-promote [(control 62)] outline-demote " " outline-insert-heading [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 demote-subtree] (menu-item "Demote subtree" outline-demote) [headings promote-subtree] (menu-item "Promote subtree" outline-promote) [headings move-subtree-down] (menu-item "Move subtree down" outline-move-subtree-down) [headings move-subtree-up] (menu-item "Move subtree up" outline-move-subtree-up) [headings copy] (menu-item "Copy to kill ring" outline-headers-as-kill :enable mark-active) [headings outline-insert-heading] ("New heading" . outline-insert-heading) [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) outline-minor-mode-menu-bar-map [outline] "Outline" apply append mapcar #[(x) ":\205 \301AB\207" [x (--- "---")] 2] outline-mode-map [menu-bar]] 12) #@54 Additional expressions to highlight in Outline mode. (defvar outline-font-lock-keywords '((eval list (concat "^\\(?:" outline-regexp "\\).+") 0 '(outline-font-lock-face) nil t)) (#$ . 5136)) (byte-code "\301\302\303\304\305\306%\210\301\307\310\311\305\306%\210\301\312\313\314\305\306%\210\301\315\316\317\305\306%\210\301\320\321\322\305\306%\210\301\323\324\325\305\306%\210\301\326\327\330\305\306%\210\301\331\332\333\305\306%\210\334B\335\334!\204O\336\334\337\"\210\340B\335\340!\204^\336\340\341\"\210\342\340!\207" [current-load-list custom-declare-face outline-1 ((t :inherit font-lock-function-name-face)) "Level 1." :group outlines outline-2 ((t :inherit font-lock-variable-name-face)) "Level 2." outline-3 ((t :inherit font-lock-keyword-face)) "Level 3." outline-4 ((t :inherit font-lock-builtin-face)) "Level 4." outline-5 ((t :inherit font-lock-comment-face)) "Level 5." outline-6 ((t :inherit font-lock-constant-face)) "Level 6." outline-7 ((t :inherit font-lock-type-face)) "Level 7." outline-8 ((t :inherit font-lock-string-face)) "Level 8." outline-font-lock-faces default-boundp set-default [outline-1 outline-2 outline-3 outline-4 outline-5 outline-6 outline-7 outline-8] outline-font-lock-levels nil make-variable-buffer-local] 6) (defalias 'outline-font-lock-face #[nil "\212\301\224b\210\302!\210\303\304\305\217)\207" [outline-regexp 0 looking-at nil (byte-code " SH\207" [outline-font-lock-faces outline-level] 2) ((error font-lock-warning-face))] 3]) #@57 Normal hook to be run after outline visibility changes. (defvar outline-view-change-hook nil (#$ . 6629)) #@45 *This hook is run when outline mode starts. (defvar outline-mode-hook nil (#$ . -6741)) #@61 *Non-nil means to leave unhidden blank line before heading. (defvar outline-blank-line nil (#$ . -6835)) (byte-code "\302\303N\204\f\304\302\303\305#\210\306\307!\204\304\307\310\311#\210\307B\312\307!\204(\313\307\314 \"\210\306\315!\2044\304\315\310\311#\210\315B\312\315!\204D\313\315\316 \"\210\304\301\310\311#\210\301B\312\301!\204^\313\301\317\301\320\"\210 \"\210\304\311\321\322#\207" [current-load-list outline-mode-abbrev-table outline-mode-hook variable-documentation put "Hook run when entering Outline mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp outline-mode-map definition-name outline-mode default-boundp set-default make-sparse-keymap outline-mode-syntax-table make-syntax-table define-abbrev-table nil derived-mode-parent text-mode] 5) #@2129 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. \[hide-sublevels] make only the first N levels of headers 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\300!\210\307\310 \210\311\312\310\313N\203\314\311\313\310\313N#\210\315 !\204'\316 \317 \"\210\320\f!\211\2036 \321 =\203<\322\f\323 \"\210)\324 !\210\325\f!\210+,\306\326!\210\307\327\330!\210\306\331!\210\332-\333R\306\334!\210-\306\335!\210\332-\333R\306\336!\210\337\340\341-\342Q\343EC.\344\345\346\340\307$\210)\347\350!\203\232\350\351!\207\352\351!\207" [delay-mode-hooks major-mode mode-name outline-mode-map outline-mode-syntax-table parent make-local-variable t text-mode outline-mode "Outline" mode-class put keymap-parent set-keymap-parent current-local-map char-table-parent standard-syntax-table set-char-table-parent syntax-table use-local-map set-syntax-table line-move-ignore-invisible add-to-invisibility-spec (outline . t) paragraph-start "\\|\\(?:" "\\)" auto-fill-inhibit-regexp paragraph-separate font-lock-defaults (outline-font-lock-keywords t nil nil backward-paragraph) nil "^\\(?:" "\\).*$" 0 add-hook change-major-mode-hook show-all fboundp run-mode-hooks outline-mode-hook run-hooks outline-mode-abbrev-table local-abbrev-table outline-regexp imenu-generic-expression] 6 (#$ . 7707) 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 '"@" '(#$ . -11029) :type 'string :group 'outlines) #@105 Non-nil if Outline minor mode is enabled. Use the command `outline-minor-mode' to change this variable. (defvar outline-minor-mode nil (#$ . 11342)) (make-variable-buffer-local 'outline-minor-mode) #@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) "\303=\203 ?\202%\203\304!\305V\202% \204\306\202%\307\310\301\"\210\311\211\203>\312\313\314\311\306$\210\315\302!\210\306\316\317!\210\202G\311\320\321!\210\322 \210\323\324 \203Q\325\202R\326\"\210\327 \203f\307\330 \203c\331\202d\332\"\210\333 \210 \207" [arg outline-minor-mode line-move-ignore-invisible toggle prefix-numeric-value 0 t message "Toggling %s off; better pass an explicit argument." nil add-hook change-major-mode-hook #[nil "\300\301!\207" [outline-minor-mode -1] 2] make-local-variable add-to-invisibility-spec (outline . t) remove-from-invisibility-spec (outline . t) show-all run-hooks outline-minor-mode-hook outline-minor-mode-on-hook outline-minor-mode-off-hook called-interactively-p "Outline minor mode %sabled" "en" "dis" force-mode-line-update] 6 (#$ . 11547) (list (or current-prefix-arg 'toggle))]) #@34 Keymap for `outline-minor-mode'. (defvar outline-minor-mode-map (byte-code "\304B \nBD\305 !\203 \202' <\203\306 !\202'\307\310\304B \nBD\")\207" [outline-minor-mode-menu-bar-map outline-minor-mode-prefix outline-mode-prefix-map m [menu-bar] keymapp easy-mmode-define-keymap error "Invalid keymap %S"] 5) (#$ . 12620)) (add-minor-mode 'outline-minor-mode " Outl" outline-minor-mode-map) #@185 *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 and that the match data reflects the `outline-regexp'. (defvar outline-level 'outline-level (#$ . -13023)) #@870 Alist associating a heading for every possible level. Each entry is of the form (HEADING . LEVEL). This alist is used two ways: to find the heading corresponding to a given level and to find the level of a given heading. If a mode or document needs several sets of outline headings (for example numbered and unnumbered sections), list them set by set and sorted by level within each set. For example in texinfo mode: (setq outline-heading-alist '(("@chapter" . 2) ("@section" . 3) ("@subsection" . 4) ("@subsubsection" . 5) ("@unnumbered" . 2) ("@unnumberedsec" . 3) ("@unnumberedsubsec" . 4) ("@unnumberedsubsubsec" . 5) ("@appendix" . 2) ("@appendixsec" . 3)... ("@appendixsubsec" . 4) ("@appendixsubsubsec" . 5) ..)) Instead of sorting the entries in each set, you can also separate the sets with nil. (defvar outline-heading-alist nil (#$ . 13266)) (make-variable-buffer-local 'outline-heading-alist) #@247 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 either the level specified in `outline-heading-alist' or else the number of characters matched by `outline-regexp'. (defalias 'outline-level #[nil "\301\302\303!\"A\206\303\225\303\224Z\207" [outline-heading-alist assoc match-string 0] 3 (#$ . 14242)]) #@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 "\302\303\304Q\305\306#\203\307\224b\210n\205\" \204m\205\"o?\205\"\310u\207" [outline-regexp outline-blank-line re-search-forward "\n\\(?:" "\\)" nil move 0 -1] 4 (#$ . 14635)]) #@53 Move to the next (possibly invisible) heading line. (defalias 'outline-next-heading #[nil "n\203 m\204 \301u\210\302\303\304Q\305\306#\205\307\224b\207" [outline-regexp 1 re-search-forward "^\\(?:" "\\)" nil move 0] 4 (#$ . 15005) nil]) #@57 Move to the previous (possibly invisible) heading line. (defalias 'outline-previous-heading #[nil "\301\302\303Q\304\305#\207" [outline-regexp re-search-backward "^\\(?:" "\\)" nil move] 4 (#$ . 15253) nil]) #@52 Non-nil if the character after point is invisible. (defalias 'outline-invisible-p #[(&optional pos) "\301\206`\302\"\207" [pos get-char-property invisible] 3 (#$ . 15468)]) (put 'outline-invisible-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'outline-visible #[nil "\301\302\206`\303\")?\207" [pos nil get-char-property invisible] 3]) (make-obsolete 'outline-visible 'outline-invisible-p) #@146 Move to previous heading line, or beg of this line if it's a heading. Only visible heading lines are considered, unless INVISIBLE-OK is non-nil. (defalias 'outline-back-to-heading #[(&optional invisible-ok) "\304 \210\305!\206>\306\212 \2048\307\310\n\311Q\306\312#\204\313\314!\210\2042\306\315 \206+`\316\")?\2053`\211\203) b\210 )\207" [invisible-ok found outline-regexp pos beginning-of-line outline-on-heading-p nil re-search-backward "^\\(?:" "\\)" t error "before first heading" get-char-property invisible] 5 (#$ . 15883)]) #@116 Return t if point is on a (visible) heading line. If INVISIBLE-OK is non-nil, an invisible heading line is ok too. (defalias 'outline-on-heading-p #[(&optional invisible-ok) "\212\303 \210n\205\204\304\305 \206`\306\")?\205\307\n!)\207" [invisible-ok pos outline-regexp beginning-of-line nil get-char-property invisible looking-at] 3 (#$ . 16436)]) #@46 Insert a new heading at same depth at point. (defalias 'outline-insert-heading #[nil "\212\304\305\306\217\210m\203\211@@)\206\307\202\310\311!)\312\313\n\"\2043\312\314 \315Q\n\316P\"\2033\n\316Pn\204=\304\210\317 \210\nc\210l\204I\212\320 \210)\321\322!)\207" [outline-heading-alist x head outline-regexp nil (outline-back-to-heading) ((error (outline-next-heading))) "" match-string 0 string-match "[ ]\\'" "\\`\\(?:" "\\)" " " newline newline-and-indent run-hooks outline-insert-heading-hook] 5 (#$ . 16801) nil]) (defalias 'outline-invent-heading #[(head up) "\305 \306\216 \203\n\307\310O\202\n\211\310\311OP\312\313\f\314Q \"\203% \2028\315\316\317 \2030\320\2021\321\n#\n\311\211\322%+\207" [save-match-data-internal up head new-head outline-regexp match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 0 -1 nil string-match "\\`\\(?:" "\\)" read-string format "%s heading for `%s': " "Parent" "Demoted" t] 6]) #@436 Promote headings higher up the tree. If transient-mark-mode is on, and mark is active, promote headings in the region (from a Lisp program, pass `region' for WHICH). Otherwise: without prefix argument, promote current heading and all headings in the subtree (from a Lisp program, pass `subtree' for WHICH); with prefix argument, promote just the current heading (from a Lisp program, pass nil for WHICH, or do not pass any argument). (defalias 'outline-promote #[(&optional which) "\306=\203\307\310\311 \312 #\207\203\307\310`\212\313 \210`)#\207\314\315!\210\316\317!\320 \321\216 *\322\fS \"\206T\212\320 \323\216\324\325\315\"\210\fS U\205L\316\317!+\206T\326 \327\"\330\f\"\204e \fBB\331 \332\315#+\207" [which head save-match-data-internal outline-level level up-head region outline-map-region outline-promote region-beginning region-end outline-get-next-sibling outline-back-to-heading t match-string-no-properties 0 match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) outline-head-from-level ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) outline-up-heading 1 outline-invent-heading up rassoc replace-match nil outline-heading-alist] 4 (#$ . 17796) (list (if (and transient-mark-mode mark-active) 'region (outline-back-to-heading) (if current-prefix-arg nil 'subtree)))]) #@433 Demote headings lower down the tree. If transient-mark-mode is on, and mark is active, demote headings in the region (from a Lisp program, pass `region' for WHICH). Otherwise: without prefix argument, demote current heading and all headings in the subtree (from a Lisp program, pass `subtree' for WHICH); with prefix argument, demote just the current heading (from a Lisp program, pass nil for WHICH, or do not pass any argument). (defalias 'outline-demote #[(&optional which) "\306=\203\307\310\311 \312 #\207\203\307\310`\212\313 \210`)#\207\314\315!\316 \317\216 *\320\fT \"\206o\212\316 \321\216\322 \210m\204F \fX\2048m\203[eb\210\322 \210m\204[ \fX\204Mm?\205g\323 !\210\314\315!+\206o\324 \325\"\326\f\"\204\201 \fBB\327\325\330#+\207" [which head save-match-data-internal outline-level level outline-regexp region outline-map-region outline-demote region-beginning region-end outline-get-next-sibling match-string-no-properties 0 match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) outline-head-from-level ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) outline-next-heading looking-at outline-invent-heading nil rassoc replace-match t down-head outline-heading-alist] 4 (#$ . 19191) (list (if (and transient-mark-mode mark-active) 'region (outline-back-to-heading) (if current-prefix-arg nil 'subtree)))]) #@444 Get new heading with level LEVEL from ALIST. If there are no such entries, return nil. ALIST defaults to `outline-heading-alist'. Similar to (car (rassoc LEVEL ALIST)). If there are several different entries with same new level, choose the one with the smallest distance to the assocation of HEAD in the alist. This makes it possible for promotion to work in modes with several independent sets of headings (numbered, unnumbered, appendix...) (defalias 'outline-head-from-level #[(level head &optional alist) "\204 \306\n\"\307\211\211\211\211 \f\211 \204 \307\202\237\310 >\211\f\"\211 \2047 @\202\237\306\n\fA\"\211\204H @\202\237 \f\fA>\211>\203^\311\n #\202\237 \307\f>>\203q\311\n #\202\237\f\307 \f>\211>>\203\205 @\202\237 G\312_\fG G\\W\203\234\311\n #\202\237 @.\207" [alist outline-heading-alist level l2l l2 hl rassoc nil assoc outline-head-from-level 2 h ll l head] 7 (#$ . 20629)]) #@151 Call FUN for every heading between BEG and END. When FUN is called, point is at the beginning of the heading and the match data is set appropriately. (defalias 'outline-map-region #[(fun beg end) "\212\304! b\210\305\306\n\307Q\310#\205.\311\224b\210 \210\312 \210`W\205.m?\205. \210\202)\207" [end beg outline-regexp fun copy-marker re-search-forward "^\\(?:" "\\)" t 0 outline-next-heading] 4 (#$ . 21584)]) #@68 Move the currrent subtree up past ARG headlines of the same level. (defalias 'outline-move-subtree-up #[(&optional arg) "\301[!\207" [arg outline-move-subtree-down] 2 (#$ . 22011) "p"]) #@70 Move the currrent subtree down past ARG headlines of the same level. (defalias 'outline-move-subtree-down #[(&optional arg) "\306V\203\n\307\202 \310\311 \312!\313\211\211\314 \210`\315 \316\216\212\317 \210\313\320\2063`\321\"))\322 \210*\313f\323U\203F\324u\210` b\210\f\306V\203e \204^ b\210\325\326!\210\fS\211\202L\306V\203x\322 \210\313f\323U\203x\324u\210 `\313\223\210\327 \n\"c\210 b\210 \203\215\330 \210 \313\211\223.\207" [arg folded end beg cnt ins-point 0 outline-get-next-sibling outline-get-last-sibling make-marker abs nil outline-back-to-heading match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) outline-end-of-heading get-char-property invisible outline-end-of-subtree 10 1 error "Cannot move past superior level" delete-and-extract-region hide-subtree movfunc save-match-data-internal pos] 7 (#$ . 22204) "p"]) (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) "\304W\203\f\305 \210\202\306\210\306o\204@\304W\203@o\204:\307\310\n\311Q\306\312#\211\203:\306\313 \2064`\314\")\204T\202m\204p\304V\203pm\204j\315\310\n\311Q\306\312#\211\203j\304\224\313 \206d`\314\")\204JS\202@ \205v\305 )\207" [arg found-heading-p outline-regexp pos 0 beginning-of-line nil re-search-backward "^\\(?:" "\\)" move get-char-property invisible re-search-forward] 4 (#$ . 23258) "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 (#$ . 23927) "p"]) #@125 Mark the current subtree in an outlined document. This puts point at the start of the current subtree, and mark at the end. (defalias 'outline-mark-subtree #[nil "\301\302 \203 \303 \210\202\304\305!\210`\306 \210\307`\301\310#\210b)\207" [beg nil outline-on-heading-p beginning-of-line outline-previous-visible-heading 1 outline-end-of-subtree push-mark t] 4 (#$ . 24228) nil]) #@187 Function called if `isearch' finishes in an invisible overlay. The function is called with the overlay as its only argument. If nil, `show-entry' is called to reveal the invisible text. (defvar outline-isearch-open-invisible-function nil (#$ . 24620)) (put 'outline 'reveal-toggle-invisible 'outline-reveal-toggle-invisible) #@130 Hide or show lines from FROM to TO, according to FLAG. If FLAG is nil then text is shown, while if FLAG is t the text is hidden. (defalias 'outline-flag-region #[(from to flag) "\305 \306\307$\210\n\203!\310 \"\311 \306\307#\210\311 \312\f\206\313#\210)\314\315!\207" [from to flag o outline-isearch-open-invisible-function remove-overlays invisible outline make-overlay overlay-put isearch-open-invisible outline-isearch-open-invisible run-hooks outline-view-change-hook] 5 (#$ . 24952)]) (defalias 'outline-reveal-toggle-invisible #[(o hidep) "\212\304!b\210 \203+\305!\306!\210\307 \210\310\311!\210m?\205'`\nW\205'\202)\202b\312!\313\314\315#\210\316 \210\317 \210\304!\304 !\232\203T`\305!W\203T\311y\320U\2045\304!\304 !\232\205a\306 !))\207" [o hidep end o1 overlay-start overlay-end delete-overlay hide-subtree outline-next-visible-heading 1 copy-overlay overlay-put invisible nil show-entry show-children 0] 4]) (defalias 'outline-isearch-open-invisible #[(overlay) "\300 \207" [show-entry] 1]) #@48 Hide the body directly following this heading. (defalias 'hide-entry #[nil "\212\300 \210\301 \210\302`\303 \210`\304#)\207" [outline-back-to-heading outline-end-of-heading outline-flag-region outline-next-preface t] 4 (#$ . 25988) nil]) #@100 Show the body directly following this heading. Show the heading too, if it is currently invisible. (defalias 'show-entry #[nil "\212\300\301!\210\302`S\303 \210`\304#)\207" [outline-back-to-heading t outline-flag-region outline-next-preface nil] 4 (#$ . 26233) nil]) #@62 Hide all body lines in buffer, leaving all headings visible. (defalias 'hide-body #[nil "\300ed\"\207" [hide-region-body] 3 (#$ . 26506) nil]) #@54 Hide all body lines in the region, but not headings. (defalias 'hide-region-body #[(start end) "\303\212\214 \n}\210eb\210\304 \203\305 \210\202\306 \210m\204=\307`\306 \210`\310#\210m\204\311\312!\2034\313\2025\314u\210\305 \210\202+\315\300!\207" [outline-view-change-hook start end nil outline-on-heading-p outline-end-of-heading outline-next-preface outline-flag-region t looking-at "\n\n" 2 1 run-hooks] 4 (#$ . 26655)]) #@37 Show all of the text in the buffer. (defalias 'show-all #[nil "\300ed\301#\207" [outline-flag-region nil] 4 (#$ . 27099) nil]) #@54 Hide everything after this heading at deeper levels. (defalias 'hide-subtree #[nil "\300\301!\207" [outline-flag-subtree t] 2 (#$ . 27232) nil]) #@56 Hide the body after this heading and at deeper levels. (defalias 'hide-leaves #[nil "\212\300 \210\301`\302 \210`\")\207" [outline-back-to-heading hide-region-body outline-end-of-subtree] 3 (#$ . 27383) nil]) #@54 Show everything after this heading at deeper levels. (defalias 'show-subtree #[nil "\300\301!\207" [outline-flag-subtree nil] 2 (#$ . 27598) nil]) #@47 Show the current heading and move to its end. (defalias 'outline-show-heading #[nil "\301`o\203\n\302\202\203`SSf\303=\203\304\202\305Z\306 \210`\307#\207" [outline-blank-line outline-flag-region 0 10 2 1 outline-end-of-heading nil] 4 (#$ . 27751)]) #@72 Hide everything but the top LEVELS levels of headers, in whole buffer. (defalias 'hide-sublevels #[(levels) "\304W\203\n\305\306!\210\212\307eb\210\310\311!\204\312 \210`db\210n\203'`S\202(`\313\n \311#\210\314\315\n #\210,\316\301!\207" [levels outline-view-change-hook beg end 1 error "Must keep at least one level of headers" nil outline-on-heading-p t outline-next-heading outline-flag-region outline-map-region #[nil " X\205 \302 \207" [outline-level levels outline-show-heading] 2] run-hooks] 4 (#$ . 28017) (list (cond (current-prefix-arg (prefix-numeric-value current-prefix-arg)) ((save-excursion (beginning-of-line) (looking-at outline-regexp)) (funcall outline-level)) (t 1)))]) #@72 Hide everything except current body and parent and top-level headings. (defalias 'hide-other #[nil "\301\302!\210\303\212\304\305!\210\306 \210\303\307\310\217\203$\311`S\212\302y\210`)\303#\210\202*\312\300!\207" [outline-view-change-hook hide-sublevels 1 nil outline-back-to-heading t show-entry (byte-code "\300\301\302\"\210o?\207" [outline-up-heading 1 t] 3) ((error)) outline-flag-region run-hooks] 4 (#$ . 28725) nil]) #@66 Show or hide the current subtree depending on its current state. (defalias 'outline-toggle-children #[nil "\212\301 \210\302 \303\206 `\304\")\204\305 \202\306 \210\307 )\207" [pos outline-back-to-heading line-end-position get-char-property invisible hide-subtree show-children show-entry] 3 (#$ . 29161) 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\202n\2055l?\2055\310u\210 \2055n\2055\310u*\207" [outline-level level first outline-blank-line outline-back-to-heading t nil outline-next-heading -1] 2]) #@61 Show all subheadings of this heading, but not their bodies. (defalias 'show-branches #[nil "\300\301!\207" [show-children 1000] 2 (#$ . 29932) 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\304!\202#\212\305 \210 \306 \210m\203\307\202\"\307 \nZ]*\310\212\305 \210 \\\311\312`\313 \210m\203=d\202?`T#\210*\314\303!\207" [level outline-level start-level outline-view-change-hook prefix-numeric-value outline-back-to-heading outline-next-heading 1 nil outline-map-region #[nil " X\205 \302 \207" [outline-level level outline-show-heading] 2] outline-end-of-subtree run-hooks] 4 (#$ . 30088) "P"]) #@171 Move to the visible heading line of which the present line is a subheading. With argument, move up ARG levels. If INVISIBLE-OK is non-nil, also consider invisible lines. (defalias 'outline-up-heading #[(arg &optional invisible-ok) "\306=\203 \306=\204\307 \210\310\n!\210 \211\311=\203 \312\313!\210\f\311V\203] \314V\203]o\204]\f\211\fW\204So\204S\n\203G\315 \210\202K\316\311!\210 \211\2024) S\202 )\317!\207" [this-command last-command invisible-ok outline-level start-level arg outline-up-heading push-mark outline-back-to-heading 1 error "Already at top level of the outline" 0 outline-previous-heading outline-previous-visible-heading looking-at level outline-regexp] 3 (#$ . 30755) "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\210S\202!\303\305\306!\210)\202\207" [arg point-to-move-to outline-back-to-heading 0 outline-get-next-sibling error "No following same-level heading"] 3 (#$ . 31485) "p"]) #@100 Move to next heading of the same level, and return point. If there is no such heading, return nil. (defalias 'outline-get-next-sibling #[nil " \302\303!\210m\204 V\203\302\303!\210\202m\206! W?\205&`)\207" [outline-level level outline-next-visible-heading 1] 2 (#$ . 31889)]) #@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\210S\202!\303\305\306!\210)\202\207" [arg point-to-move-to outline-back-to-heading 0 outline-get-last-sibling error "No previous same-level heading"] 3 (#$ . 32186) "p"]) #@104 Move to previous heading of the same level, and return point. If there is no such heading, return nil. (defalias 'outline-get-last-sibling #[nil "` \303\304!\210`\nU?\2050\305 \2050 V\203'o\204'\303\304!\210\202 W?\2050`*\207" [outline-level level opoint outline-previous-visible-heading 1 outline-on-heading-p] 2 (#$ . 32591)]) #@258 Save the visible outline headers in region at the start of the kill ring. Text shown between the headers isn't copied. Two newlines are inserted between saved headers. Yanking the result may be a convenient way to make a table of contents of the buffer. (defalias 'outline-headers-as-kill #[(beg end) "\212\214 }\210eb\210p\306\211\307\310!\311\216r\fq\210r q\210\312 \2035\313 \210`\314 \210`\315 \n #\210\316c\210)pr q\210\317 \203i\306\320\206K`\321\")\204<`\314 \210`r q\210\315 \n #\210\316c\210)\202<*\322\323 !.\207" [beg end start buffer #1=#:temp-buffer temp-buffer nil generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1# buffer-name kill-buffer] 2)) outline-on-heading-p outline-back-to-heading outline-end-of-heading insert-buffer-substring "\n\n" outline-next-heading get-char-property invisible kill-new buffer-string pos] 4 (#$ . 32941) "r"]) (byte-code "\300\301!\210\300\302!\207" [provide outline noutline] 2)