%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/outline.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'outlines nil "Support for hierarchical outlining." :prefix "outline-" :group 'text) #@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'. (defvar outline-regexp "[*\f]+" (#$ . 516)) #@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. (defvar outline-heading-end-regexp "\n" (#$ . 966)) (defvar outline-mode-prefix-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322#\210\302\323\324#\210\302\325\326#\210\302\327\330#\210\302\331\332#\210\302\333\334#\210\302\335\336#\210\302\337\340#\210\302\341\342#\210\302\343\344#\210\302\345\346#\210\302\347\350#\210\302\351\352#\210\302\353\354#\210\302\355\356#\210)\207" [map make-sparse-keymap define-key "@" outline-mark-subtree "" outline-next-visible-heading "" outline-previous-visible-heading " " outline-show-children "" outline-show-subtree "" outline-hide-subtree "" outline-up-heading "" outline-forward-same-level "" outline-backward-same-level "" outline-hide-body "" outline-show-all "" outline-hide-entry "" outline-show-entry "\f" outline-hide-leaves "" outline-show-branches "" outline-hide-sublevels "" outline-hide-other "" outline-move-subtree-up "" outline-move-subtree-down [(control 60)] outline-promote [(control 62)] outline-demote " " outline-insert-heading] 4)) (defvar outline-mode-menu-bar-map (byte-code "\301 \302\303\304\301\304!B#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322\301\322!B#\210\302\323\324#\210\302\325\326#\210\302\327\330#\210\302\331\332#\210\302\333\334#\210\302\335\336\301\336!B#\210\302\337\340#\210\302\341\342#\210\302\343\344#\210\302\345\346#\210\302\347\350#\210\302\351\352#\210\302\353\354#\210\302\355\356#\210\302\357\360#\210\302\361\362#\210\302\363\364#\210)\207" [map make-sparse-keymap define-key [hide] "Hide" [hide outline-hide-other] (menu-item "Hide Other" outline-hide-other :help "Hide everything except current body and parent and top-level headings") [hide outline-hide-sublevels] (menu-item "Hide Sublevels" outline-hide-sublevels :help "Hide everything but the top LEVELS levels of headers, in whole buffer") [hide outline-hide-subtree] (menu-item "Hide Subtree" outline-hide-subtree :help "Hide everything after this heading at deeper levels") [hide outline-hide-entry] (menu-item "Hide Entry" outline-hide-entry :help "Hide the body directly following this heading") [hide outline-hide-body] (menu-item "Hide Body" outline-hide-body :help "Hide all body lines in buffer, leaving all headings visible") [hide outline-hide-leaves] (menu-item "Hide Leaves" outline-hide-leaves :help "Hide the body after this heading and at deeper levels") [show] "Show" [show outline-show-subtree] (menu-item "Show Subtree" outline-show-subtree :help "Show everything after this heading at deeper levels") [show outline-show-children] (menu-item "Show Children" outline-show-children :help "Show all direct subheadings of this heading") [show outline-show-branches] (menu-item "Show Branches" outline-show-branches :help "Show all subheadings of this heading, but not their bodies") [show outline-show-entry] (menu-item "Show Entry" outline-show-entry :help "Show the body directly following this heading") [show outline-show-all] (menu-item "Show All" outline-show-all :help "Show all of the text in the buffer") [headings] "Headings" [headings demote-subtree] (menu-item "Demote Subtree" outline-demote :help "Demote headings lower down the tree") [headings promote-subtree] (menu-item "Promote Subtree" outline-promote :help "Promote headings higher up the tree") [headings move-subtree-down] (menu-item "Move Subtree Down" outline-move-subtree-down :help "Move the current subtree down past arg headlines of the same level") [headings move-subtree-up] (menu-item "Move Subtree Up" outline-move-subtree-up :help "Move the current subtree up past arg headlines of the same level") [headings copy] (menu-item "Copy to Kill Ring" outline-headers-as-kill :enable mark-active :help "Save the visible outline headers in region at the start of the kill ring") [headings outline-insert-heading] (menu-item "New Heading" outline-insert-heading :help "Insert a new heading at same depth at point") [headings outline-backward-same-level] (menu-item "Previous Same Level" outline-backward-same-level :help "Move backward to the arg'th subheading at same level as this one.") [headings outline-forward-same-level] (menu-item "Next Same Level" outline-forward-same-level :help "Move forward to the arg'th subheading at same level as this one") [headings outline-previous-visible-heading] (menu-item "Previous" outline-previous-visible-heading :help "Move to the previous heading line") [headings outline-next-visible-heading] (menu-item "Next" outline-next-visible-heading :help "Move to the next visible heading line") [headings outline-up-heading] (menu-item "Up" outline-up-heading :help "Move to the visible heading line of which the present line is a subheading")] 6)) (defvar outline-minor-mode-menu-bar-map (byte-code "\302 \303\304\305\302\305!\306\307\310\311 \"\"A\244B#\210)\207" [map outline-mode-menu-bar-map make-sparse-keymap define-key [outline] "Outline" apply append mapcar #[(x) ":\205 \301AB\207" [x (--- "---")] 2]] 10)) (defvar outline-mode-map (byte-code "\303 \304\305 #\210\304\306\n#\210)\207" [map outline-mode-prefix-map outline-mode-menu-bar-map make-sparse-keymap define-key "" [menu-bar]] 4)) #@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)) (#$ . 6590)) (byte-code "\300\301\302\303\304\305%\210\300\306\307\310\304\305%\210\300\311\312\313\304\305%\210\300\314\315\316\304\305%\210\300\317\320\321\304\305%\210\300\322\323\324\304\305%\210\300\325\326\327\304\305%\210\300\330\331\332\304\305%\207" [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-comment-face)) "Level 4." outline-5 ((t :inherit font-lock-type-face)) "Level 5." outline-6 ((t :inherit font-lock-constant-face)) "Level 6." outline-7 ((t :inherit font-lock-builtin-face)) "Level 7." outline-8 ((t :inherit font-lock-string-face)) "Level 8."] 6) (defvar outline-font-lock-faces [outline-1 outline-2 outline-3 outline-4 outline-5 outline-6 outline-7 outline-8]) #@60 Return one of `outline-font-lock-faces' for current level. (defalias 'outline-font-lock-face #[nil "\212\303\224b\210\304!\210 \n S G\246H)\207" [outline-regexp outline-font-lock-faces outline-level 0 looking-at] 3 (#$ . 7670)]) #@57 Normal hook to be run after outline visibility changes. (defvar outline-view-change-hook nil (#$ . 7906)) #@44 This hook is run when outline mode starts. (defvar outline-mode-hook nil (#$ . 8018)) #@60 Non-nil means to leave unhidden blank line before heading. (defvar outline-blank-line nil (#$ . 8110)) (defvar outline-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [outline-mode-hook variable-documentation put "Hook run after 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] 4) (defvar outline-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204 \303\307\310\311#\210\312\313 !\210\307\302N\204- \303\307\302\304\314!#\210\306\300!\204B \303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P \303\300\302\304\320!#\210\303\311\321\322#\207" [outline-mode-abbrev-table outline-mode-map variable-documentation put purecopy "Keymap for `outline-mode'." boundp outline-mode-syntax-table definition-name outline-mode (lambda (#1=#:def-tmp-var) (defvar outline-mode-syntax-table #1#)) make-syntax-table "Syntax table for `outline-mode'." (lambda (#1#) (defvar outline-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `outline-mode'." derived-mode-parent text-mode] 5) #@1061 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 (...). \{outline-mode-map} The commands `outline-hide-subtree', `outline-show-subtree', `outline-show-children', `outline-hide-entry', `outline-show-entry', `outline-hide-leaves', and `outline-show-branches' are used when point is on a heading line. 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<