%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/textmodes/ |
Current File : //usr/local/share/emacs/27.2/lisp/textmodes/page-ext.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315%\210\306\316\310\311\317DD\320\314\315%\210\306\321\310\311\322DD\323\314\315%\210\306\324\310\311\325DD\326\314\327%\210\306\330\310\311\331DD\332\314\315%\210\306\333\310\311\334DD\335\314\315%\210\306\336\310\311\337DD\340\314\315%\207" [custom-declare-group pages nil "Extended page-handling commands." :group extensions custom-declare-variable pages-directory-buffer-narrowing-p funcall function #[0 "\300\207" [t] 1] "If non-nil, `pages-directory-goto' narrows pages buffer to entry." :type boolean pages-directory-for-adding-page-narrowing-p #[0 "\300\207" [t] 1] "If non-nil, `add-new-page' narrows page buffer to new entry." pages-directory-for-adding-new-page-before-current-page-p #[0 "\300\207" [t] 1] "If non-nil, `add-new-page' inserts new page before current page." pages-addresses-file-name #[0 "\300\207" [#1="~/addresses"] 1 #1#] "Standard name for file of addresses. Entries separated by page-delimiter.\nUsed by `pages-directory-for-addresses' function." file pages-directory-for-addresses-goto-narrowing-p #[0 "\300\207" [t] 1] "If non-nil, `pages-directory-goto' narrows addresses buffer to entry." pages-directory-for-addresses-buffer-keep-windows-p #[0 "\300\207" [t] 1] "If nil, `pages-directory-for-addresses' deletes other windows." pages-directory-for-adding-addresses-narrowing-p #[0 "\300\207" [t] 1] "If non-nil, `add-new-page' narrows addresses buffer to new entry."] 6) #@65 Keymap for subcommands of C-x C-p, which are for page handling. (defvar pages--ctl-x-ctl-p-map (byte-code "\300 \301\302\303#\210\301\304\305#\210\301\306\307#\210\301\310\311#\210\301\312\313#\210\301\314\315#\210\301\316\317#\210\301\320\321#\210\301\322\323#\210\211\207" [make-sparse-keymap define-key "" pages-next-page "" pages-previous-page "" pages-add-new-page " " mark-page "" pages-search "s" pages-sort-buffer "\f" pages-set-delimiter "" pages-directory "d" pages-directory-for-addresses] 5) (#$ . 1887)) (byte-code "\302\303!\210\304\305\306#\210\307\310\306\311#\210\312\310\306\313#\210\307\306 \"\210\307\314\315\311#\210\312\314\315\313#\207" [ctl-x-map pages--ctl-x-ctl-p-map global-unset-key "" define-key "" pages-ctl-x-ctl-p-prefix defalias ctl-x-ctl-p-prefix nil make-obsolete "27.1" next-page pages-next-page] 4) #@143 Move to the next page bounded by the `page-delimiter' variable. With arg (prefix if interactive), move that many pages. (fn &optional COUNT) (defalias 'pages-next-page #[256 "\211\204 \301\262~\210\211\302Y\203+ \211\302V\203T m\204T \303\304\305#\204$ db\210\211S\262\202 \211\301W\203T o\204T \306\304\305#\203J \211\302U\203M \302\225b\210\202M eb\210\211T\262\202+ \307 \210eb\210\310\302!\207" [page-delimiter 1 0 re-search-forward nil t re-search-backward narrow-to-page recenter] 5 (#$ . 2748) "p"]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias previous-page pages-previous-page nil make-obsolete "27.1"] 4) #@147 Move to the previous page bounded by the `page-delimiter' variable. With arg (prefix if interactive), move that many pages. (fn &optional COUNT) (defalias 'pages-previous-page #[256 "\211\204 \300\262\301[!\207" [1 pages-next-page] 3 (#$ . 3399) "p"]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias add-new-page pages-add-new-page nil make-obsolete "27.1"] 4) #@561 Insert new page. Prompt for header line. If point is in the pages directory buffer, insert the new page in the buffer associated with the directory. Insert the new page just before current page if `pages-directory-for-adding-new-page-before-current-page-p' is non-nil. Else insert at exact location of point. Narrow to new page if `pages-directory-for-adding-page-narrowing-p' is non-nil. Page begins with a `^L' as the default `page-delimiter'. Use \[set-page-delimiter] to change the page-delimiter. Point is left in the body of page. (fn HEADER-LINE) (defalias 'pages-add-new-page #[257 "~\210\304=\203 \203 \305 \210\202 \305 \210\306 \210m\204 \307y\210~\210 \203L \310\n\311\312#\2034 \313\224b\210\202L eb\210\314\315\316\n!@\317=\205F \320\n\321\"\"c\210eb\210\322\323!\204U \321y\210\314\324\316\n!@\317=\205d \320\n\321\"#c\210\307y\210\205q \325 \207" [major-mode pages-directory-for-adding-new-page-before-current-page-p page-delimiter pages-directory-for-adding-page-narrowing-p pages-directory-mode pages-directory-goto forward-page -1 re-search-backward nil t 0 format "%s\n" read-from-string ^ substring 1 looking-at "^." "%s\n%s\n\n\n" narrow-to-page] 6 (#$ . 3789) "sHeader line: "]) #@53 Value of last regexp searched for. Initially, nil. (defvar pages-last-search nil (#$ . 5011)) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias search-pages pages-search nil make-obsolete "27.1"] 4) #@83 Search for REGEXP, starting from point, and narrow to page it is in. (fn REGEXP) (defalias 'pages-search #[257 "\211\301\232\203\f \262\202 \211~\210\302!\210\303 \207" [pages-last-search "" re-search-forward narrow-to-page] 3 (#$ . 5233) (byte-code "\301\302\303\206 \304\"!C\207" [pages-last-search read-string format-message "Search for `%s' (end with RET): " "regexp"] 4)]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias sort-pages-in-region pages-sort-region nil make-obsolete "27.1"] 4) #@213 Sort pages in region alphabetically. Prefix arg means reverse order. Called from a program, there are three arguments: REVERSE (non-nil means reverse order), BEG and END (region to sort). (fn REVERSE BEG END) (defalias 'pages-sort-region #[771 "\214}\210eb\210\300\301\302#)\207" [sort-subr #[0 "\301\302\303#\210\304\302w\207" [page-delimiter re-search-forward nil t " \n"] 4] #[0 "\301\302\303#\203\f \304\224b\207db\207" [page-delimiter re-search-forward nil t 0] 4]] 7 (#$ . 5760) "P\nr"]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias sort-pages-buffer pages-sort-buffer nil make-obsolete "27.1"] 4) #@129 Sort pages alphabetically in buffer. Prefix arg means reverse order. (Non-nil arg if not interactive.) (fn &optional REVERSE) (defalias 'pages-sort-buffer #[256 "\211\204 \300\262~\210ed\301#\207" [nil pages-sort-region] 7 (#$ . 6401) "P"]) #@154 Value of previous regexp used by `pages-directory'. (This regular expression may be used to select only those pages that contain matches to the regexp.) (defvar pages-directory-previous-regexp nil (#$ . 6656)) #@74 The buffer for which the pages-directory function creates the directory. (defvar pages-buffer nil (#$ . 6872)) (make-variable-buffer-local 'pages-buffer) #@57 Prefix of name of temporary buffer for pages-directory. (defvar pages-directory-prefix "*Directory for:" (#$ . 7032)) #@65 List containing the positions of the pages in the pages-buffer. (defvar pages-pos-list nil (#$ . 7156)) (byte-code "\300\301!\210\302\303\304\305#\210\306\211\203, \211@\303N\203% \304N\204% \307\304\303N#\210A\266\202\202 \210\310\303\304\311#\207" [make-variable-buffer-local pages-pos-list defvaralias pages-directory-map pages-directory-mode-map nil (saved-value saved-variable-comment) put make-obsolete-variable "26.1"] 7) #@40 Keymap for the pages-directory-buffer. (defvar pages-directory-mode-map (byte-code "\300 \301\302\303#\210\301\304\303#\210\301\305\306#\210\301\307\303#\210\211\207" [make-sparse-keymap define-key "" pages-directory-goto " " "" pages-add-new-page [mouse-2]] 5) (#$ . 7597)) #@25 Default page delimiter. (defvar pages-original-delimiter "^\f" (#$ . 7887)) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias set-page-delimiter pages-set-delimiter nil make-obsolete "27.1"] 4) #@307 Set buffer local value of page-delimiter to REGEXP. Called interactively with a prefix argument, reset `page-delimiter' to its original value. In a program, non-nil second arg causes first arg to be ignored and resets the page-delimiter to the original value. (fn REGEXP RESET-P &optional INTERACTIVELY) (defalias 'pages-set-delimiter #[770 "\302\300!\210\206 \302\301!\210\204 \202 \211\205 \303\304 \"\207" [pages-original-delimiter page-delimiter make-local-variable message "The value of `page-delimiter' is now: %s"] 6 (#$ . 8104) (byte-code "\203 \303\211E\207\304\305\n\"\306\303E\207" [current-prefix-arg pages-original-delimiter page-delimiter t read-regexp "Set page-delimiter to regexp: " nil] 3)]) #@1153 Display a directory of the page headers in a temporary buffer. A header is the first non-blank line after the `page-delimiter'. \[pages-directory-mode] You may move point to one of the lines in the temporary buffer, then use \<pages-directory-goto> to go to the same line in the pages buffer. In interactive use: 1. With no prefix arg, display all headers. 2. With prefix arg, display the headers of only those pages that contain matches to a regular expression for which you are prompted. 3. With numeric prefix arg, for every page, print the number of lines within each page. 4. With negative numeric prefix arg, for only those pages that match a regular expression, print the number of lines within each page. When called from a program, non-nil first arg means list all headers; non-nil second arg means print numbers of lines in each page; if first arg is nil, optional third arg is regular expression. If the buffer is narrowed, the `pages-directory' command creates a directory for only the accessible portion of the buffer. (fn PAGES-LIST-ALL-HEADERS-P COUNT-LINES-P &optional REGEXP) (defalias 'pages-directory #[770 "\211\306\232\203\f \262\202 \211\307\310!\203 \311\312\313 \"\210p \314\313 Q`\315 r\316!q\210p\317 \210\320\211 !\321\211\"\321#$\322 \210\323\324!\210+\211%r%q\210\325 \210\320 \326\327\261\210\f&\320')\203\242 \212eb\210\214\212\330(\320\321#)\203\204 \315\224\331U\203\204 \315\225b\210\332 \210\333!\210)\330(\320\321#\203\236 \333!\210\202\215 )\202\333 \212eb\210\214\332 \210\212\330\320\321#)\203\271 \333!\210)\330(\320\321#\203\332 \214\332 \210\212\330\320\321#)\203\326 \333!\210)\202\272 )%q\210\321 '\237'\307\310!\203\367 \311\334'G\313\f!#\210\335!\210)\266\336!\210\337\315!\210\n\315U\203\331\202\ny+\207" [pages-directory-previous-regexp pages-directory-prefix pages-buffer-original-page pages-buffer-original-position pages-target-buffer default-directory "" called-interactively-p interactive message "Creating directory for: %s " buffer-name " " 0 get-buffer-create kill-all-local-variables nil t erase-buffer run-hooks temp-buffer-setup-hook pages-directory-mode "==== Pages Directory: use `C-c C-c' to go to page under cursor. ====" 10 re-search-forward 1 narrow-to-page pages-copy-header-and-position "%d matching lines in: %s" internal-temp-output-buffer-show pop-to-buffer sit-for buffer-read-only buffer-file-name buffer-undo-list inhibit-modification-hooks inhibit-read-only standard-output pages-buffer pages-pos-list page-delimiter] 13 (#$ . 8838) (byte-code "\204 \302\303\211E\207<\203 \303\211\304\305\306 \206 \307\"!E\207\310!\311V\203) \302\211\303E\207\310!\311W\205>