Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/textmodes/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:48 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/textmodes/page-ext.el ;;; in Emacs version 24.3.1 ;;; 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\312\313\304\301&\210\306\314\310\315\312\313\304\301&\210\306\316\310\317\312\313\304\301&\210\306\320\321\322\312\323\304\301&\210\306\324\310\325\312\313\304\301&\210\306\326\310\327\312\313\304\301&\210\306\330\310\331\312\313\304\301&\210\332\333!\207" [custom-declare-group pages nil "Extended page-handling commands." :group extensions custom-declare-variable pages-directory-buffer-narrowing-p t "If non-nil, `pages-directory-goto' narrows pages buffer to entry." :type boolean pages-directory-for-adding-page-narrowing-p "If non-nil, `add-new-page' narrows page buffer to new entry." pages-directory-for-adding-new-page-before-current-page-p "If non-nil, `add-new-page' inserts new page before current page." pages-addresses-file-name "~/addresses" "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 "If non-nil, `pages-directory-goto' narrows addresses buffer to entry." pages-directory-for-addresses-buffer-keep-windows-p "If nil, `pages-directory-for-addresses' deletes other windows." pages-directory-for-adding-addresses-narrowing-p "If non-nil, `add-new-page' narrows addresses buffer to new entry." global-unset-key ""] 8) #@65 Keymap for subcommands of C-x C-p, which are for page handling. (defvar ctl-x-ctl-p-map (make-sparse-keymap) (#$ . 1894)) (byte-code "\302\303\304#\210\304 M\210\302 \305\306#\210\302 \303\307#\210\302 \310\311#\210\302 \312\313#\210\302 \314\315#\210\302 \316\317#\210\302 \320\321#\210\302 \322\323#\210\302 \324\325#\207" [ctl-x-map ctl-x-ctl-p-map define-key "" ctl-x-ctl-p-prefix "" next-page previous-page "" add-new-page " " mark-page "" search-pages "s" sort-pages-buffer "\f" set-page-delimiter "" pages-directory "d" pages-directory-for-addresses] 4) #@121 Move to the next page bounded by the `page-delimiter' variable. With arg (prefix if interactive), move that many pages. (defalias 'next-page #[(&optional count) "\204 \302~\210\303V\203$ m\204$ \304 \305\306#\204 db\210S\211\202 \302W\203G o\204G \307 \305\306#\203= \303\224b\210\202@ eb\210T\211\202% \310 \210eb\210\311\303!\207" [count page-delimiter 1 0 re-search-forward nil t re-search-backward narrow-to-page recenter] 5 (#$ . 2468) "p"]) #@125 Move to the previous page bounded by the `page-delimiter' variable. With arg (prefix if interactive), move that many pages. (defalias 'previous-page #[(&optional count) "\204 \301\302[!\207" [count 1 next-page] 2 (#$ . 2933) "p"]) #@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 variable is non-nil. Else insert at exact location of point. Narrow to new page if pages-directory-for-adding-page-narrowing-p variable 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. (defalias 'add-new-page #[(header-line) "~\210\305=\203 \203 \306 \210\202 \306 \210\307 \210m\204 \310y\210~\210 \203L \311\n\312\313#\2034 \314\224b\210\202L eb\210\315\316\317\n!@\320=\205F \n\321\312O\"c\210eb\210\322\323!\204U \321y\210\315\324\317\n!@\320=\205d \n\321\312O#c\210\310y\210\f\205q \325 \207" [major-mode pages-directory-for-adding-new-page-before-current-page-p page-delimiter header-line 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 ^ 1 looking-at "^." "%s\n%s\n\n\n" narrow-to-page] 5 (#$ . 3175) "sHeader line: "]) #@53 Value of last regexp searched for. Initially, nil. (defvar pages-last-search nil (#$ . 4402)) #@70 Search for REGEXP, starting from point, and narrow to page it is in. (defalias 'search-pages #[(regexp) "\302\232\203 \202 ~\210\303!\210\304 \207" [regexp pages-last-search "" re-search-forward narrow-to-page] 2 (#$ . 4503) (list (read-string (format "Search for `%s' (end with RET): " (or pages-last-search "regexp"))))]) #@31 Primary function for sorting. (autoload 'sort-subr "sort" '(#$ . 4841) t nil) #@191 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). (defalias 'sort-pages-in-region #[(reverse beg end) "\214 }\210eb\210\303\n\304\305#)\207" [beg end reverse sort-subr #[nil "\301\302\303#\210\304\302w\207" [page-delimiter re-search-forward nil t " \n"] 4] #[nil "\301\302\303#\203\f \304\224b\207db\207" [page-delimiter re-search-forward nil t 0] 4]] 4 (#$ . 4926) "P\nr"]) #@105 Sort pages alphabetically in buffer. Prefix arg means reverse order. (Non-nil arg if not interactive.) (defalias 'sort-pages-buffer #[(&optional reverse) "\204 \303~\210ed\304\n #*\207" [reverse end beginning nil sort-pages-in-region] 4 (#$ . 5452) "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 (#$ . 5721)) #@74 The buffer for which the pages-directory function creates the directory. (defvar pages-buffer nil (#$ . 5937)) #@57 Prefix of name of temporary buffer for pages-directory. (defvar pages-directory-prefix "*Directory for:" (#$ . 6054)) #@65 List containing the positions of the pages in the pages-buffer. (defvar pages-pos-list nil (#$ . 6178)) #@40 Keymap for the pages-directory-buffer. (defvar pages-directory-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210)\207" [map make-sparse-keymap define-key "" pages-directory-goto "" add-new-page [mouse-2] pages-directory-goto-with-mouse] 4) (#$ . 6288)) (defvaralias 'pages-directory-map 'pages-directory-mode-map) #@25 Default page delimiter. (defvar original-page-delimiter "^\f" (#$ . 6646)) #@262 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. (defalias 'set-page-delimiter #[(regexp reset-p) "\304\300!\210\304\301!\210\206 \n\204 \202 \305\306!\205# \307\310 \"\207" [original-page-delimiter page-delimiter reset-p regexp make-local-variable called-interactively-p interactive message "The value of `page-delimiter' is now: %s"] 3 (#$ . 6728) (byte-code "\203 \303D\207\304\305\n\"\306D\207" [current-prefix-arg original-page-delimiter page-delimiter "^\f" read-string "Set page-delimiter to regexp: " nil] 3)]) #@1089 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. (defalias 'pages-directory #[(pages-list-all-headers-p count-lines-p &optional regexp) "\306\232\203 \202 \307\310!\203 \311\312\313 \"\210p\n\314\313 Q\315`\316 !\"#r\317 !q\210p\320 \210#\"\321\211$%\322\211&\322'(\323 \210\324\325!\210+\211)*r*q\210\326 \210\327\330\261\210!+\321,)-\203\253 \212eb\210\214\212\331.\321\322#)\203\215 \316\224\315U\203\215 \316\225b\210\332 \210\333/!\210)\331.\321\322#\203\247 \333/!\210\202\226 )\202\344 \212eb\210\214\332 \210\212\331\321\322#)\203\302 \333/!\210)\331.\321\322#\203\343 \214\332 \210\212\331\321\322#)\203\337 \333/!\210)\202\303 )*q\210,\237,\307\310!\203\376 \311\334,G\313!!#\210\335)!\210+\336 !\210\337\316!\210\316U\203\315\202y-\207" [regexp pages-directory-previous-regexp pages-directory-prefix pages-buffer-original-page pages-buffer-original-position linenum "" called-interactively-p interactive message "Creating directory for: %s " buffer-name " " 1 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 narrow-to-page pages-copy-header-and-position "%d matching lines in: %s" internal-temp-output-buffer-show pop-to-buffer sit-for pages-directory-buffer pages-target-buffer default-directory #1=#:old-dir buffer-read-only buffer-file-name buffer-undo-list inhibit-modification-hooks inhibit-read-only #2=#:buf standard-output pages-buffer pages-pos-list pages-list-all-headers-p page-delimiter count-lines-p] 6 (#$ . 7480) (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>