%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/apropos.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!\210\302\303\304\305\306\307\310\311&\210\312\313\304\314\306\303\315\316&\210\317\320\321\322\306\303\323\324&\210\317\325\326\327\306\303\323\324&\210\317\330\331\332\306\303\323\324&\210\317\333\334\335\306\303\323\324&\210\317\336\337\340\306\303\323\324&\210\317\341\342\343\306\303\323\344&\210\317\345\346\347\306\303\323\324&\210\312\350\351\352\315\353\306\303\323\324& \210\312\354\304\355\306\303\315\356&\210\312\357\360\361\306\303\315\362&\207" [require button custom-declare-group apropos nil "Apropos commands for users and programmers." :group help :prefix "apropos" custom-declare-variable apropos-do-all "Non-nil means apropos commands will search more extensively.\nThis may be slower. This option affects the following commands:\n\n`apropos-user-option' will search all variables, not just user options.\n`apropos-command' will also search non-interactive functions.\n`apropos' will search all symbols, not just functions, variables, faces,\nand those with property lists.\n`apropos-value' will also search in property lists and functions.\n`apropos-documentation' will search all documentation strings, not just\nthose in the etc/DOC documentation file.\n\nThis option only controls the default behavior. Each of the above\ncommands also has an optional argument to request a more extensive search.\n\nAdditionally, this option makes the function `apropos-library'\ninclude key-binding information in its output." :type boolean custom-declare-face apropos-symbol ((t (:inherit bold))) "Face for the symbol name in Apropos output." :version "24.3" apropos-keybinding ((t (:inherit underline))) "Face for lists of keybinding in Apropos output." apropos-property ((t (:inherit font-lock-builtin-face))) "Face for property name in Apropos output, or nil for none." apropos-function-button ((t (:inherit (font-lock-function-name-face button)))) "Button face indicating a function, macro, or command in Apropos." apropos-variable-button ((t (:inherit (font-lock-variable-name-face button)))) "Button face indicating a variable in Apropos." apropos-user-option-button ((t (:inherit (font-lock-variable-name-face button)))) "Button face indicating a user option in Apropos." "24.4" apropos-misc-button ((t (:inherit (font-lock-constant-face button)))) "Button face indicating a miscellaneous object type in Apropos." apropos-match-face 'match "Face for matching text in Apropos documentation/value, or nil for none.\nThis applies when you look for matches in the documentation or variable value\nfor the pattern; the part that matches gets displayed in this font." (choice (const nil) face) apropos-sort-by-scores "Non-nil means sort matches by scores; best match is shown first.\nThis applies to all `apropos' commands except `apropos-documentation'.\nIf value is `verbose', the computed score is shown for each match." (choice (const :tag "off" nil) (const :tag "on" t) (const :tag "show scores" verbose)) apropos-documentation-sort-by-scores t "Non-nil means sort matches by scores; best match is shown first.\nThis applies to `apropos-documentation' only.\nIf value is `verbose', the computed score is shown for each match." (choice (const :tag "off" nil) (const :tag "on" t) (const :tag "show scores" verbose))] 10) #@30 Keymap used in Apropos mode. (defvar apropos-mode-map (byte-code "\303!\304 \n\"\210\305 \306\307#\210 )\207" [button-buffer-map map special-mode-map copy-keymap set-keymap-parent define-key " " apropos-follow] 4) (#$ . 3677)) #@34 Hook run when mode is turned on. (defvar apropos-mode-hook nil (#$ . 3912)) #@37 Apropos pattern as entered by user. (defvar apropos-pattern nil (#$ . 3994)) #@48 Apropos pattern passed through `regexp-quote'. (defvar apropos-pattern-quoted nil (#$ . 4077)) #@65 Current list of apropos words extracted from `apropos-pattern'. (defvar apropos-words nil (#$ . 4178)) #@37 Current list of words and synonyms. (defvar apropos-all-words nil (#$ . 4287)) #@37 Regexp used in current apropos run. (defvar apropos-regexp nil (#$ . 4372)) #@38 Regexp matching `apropos-all-words'. (defvar apropos-all-words-regexp nil (#$ . 4454)) #@78 List of elc files already scanned in current run of `apropos-documentation'. (defvar apropos-files-scanned nil (#$ . 4547)) #@522 Alist of symbols already found in current apropos run. Each element has the form (SYMBOL SCORE FUN-DOC VAR-DOC PLIST WIDGET-DOC FACE-DOC CUS-GROUP-DOC) where SYMBOL is the symbol name, SCORE is its relevance score (a number), FUN-DOC is the function docstring, VAR-DOC is the variable docstring, PLIST is the list of the symbols names in the property list, WIDGET-DOC is the widget docstring, FACE-DOC is the face docstring, and CUS-GROUP-DOC is the custom group docstring. Each docstring is either nil or a string. (defvar apropos-accumulator nil (#$ . 4678)) #@47 Current item in or for `apropos-accumulator'. (defvar apropos-item nil (#$ . 5250)) #@166 List of synonyms known by apropos. Each element is a list of words where the first word is the standard Emacs term, and the rest of the words are alternative terms. (defvar apropos-synonyms '(("find" "open" "edit") ("kill" "cut") ("yank" "paste") ("region" "selection")) (#$ . 5341)) #@227 List of current Apropos function followed by its arguments. Used by `apropos--revert-buffer' to regenerate the current Apropos buffer. Each Apropos command should ensure it is set before `apropos-mode' makes it buffer-local. (defvar apropos--current nil (#$ . 5632)) (define-button-type 'apropos-symbol 'face 'apropos-symbol 'help-echo "mouse-2, RET: Display more help on this symbol" 'follow-link t 'action 'apropos-symbol-button-display-help) #@62 Display further help for the `apropos-symbol' button BUTTON. (defalias 'apropos-symbol-button-display-help #[(button) "\301\302\303!!\206 \304\305\306!\"!\207" [button button-activate apropos-next-label-button button-start error "There is nothing to follow for `%s'" button-label] 5 (#$ . 6084)]) (byte-code "\300\301\302\303\304\305\306\307\310\311\312\313\314\315& \210\300\316\302\317\304\320\306\307\310\321\312\313\314\322& \210\300\323\302\324\304\325\306\307\310\326\312\313\314\327& \210\300\330\302\331\304\332\306\333\310\334\312\313\314\335& \210\300\336\302\337\304\340\306\341\310\342\312\313\314\343& \210\300\344\302\345\304\346\306\347\310\350\312\313\314\351& \210\300\352\302\353\304\354\306\355\310\356\312\313\314\357& \210\300\360\302\361\304\362\306\355\310\363\312\313\314\364& \210\300\365\302\366\304\367\306\355\310\370\312\313\314\371& \210\300\372\310\373\312\313\314\374&\207" [define-button-type apropos-function apropos-label "Function" apropos-short-label "f" face apropos-function-button help-echo "mouse-2, RET: Display more help on this function" follow-link t action #[(button) "\301\302\303\"!\207" [button describe-function button-get apropos-symbol] 4] apropos-macro "Macro" "m" "mouse-2, RET: Display more help on this macro" #[(button) "\301\302\303\"!\207" [button describe-function button-get apropos-symbol] 4] apropos-command "Command" "c" "mouse-2, RET: Display more help on this command" #[(button) "\301\302\303\"!\207" [button describe-function button-get apropos-symbol] 4] apropos-variable "Variable" "v" apropos-variable-button "mouse-2, RET: Display more help on this variable" #[(button) "\301\302\303\"!\207" [button describe-variable button-get apropos-symbol] 4] apropos-user-option "User option" "o" apropos-user-option-button "mouse-2, RET: Display more help on this user option" #[(button) "\301\302\303\"!\207" [button describe-variable button-get apropos-symbol] 4] apropos-face "Face" "F" (font-lock-variable-name-face button) "mouse-2, RET: Display more help on this face" #[(button) "\301\302\303\"!\207" [button describe-face button-get apropos-symbol] 4] apropos-group "Group" "g" apropos-misc-button "mouse-2, RET: Display more help on this group" #[(button) "\301\302\303\"!\207" [button customize-group-other-window button-get apropos-symbol] 4] apropos-widget "Widget" "w" "mouse-2, RET: Display more help on this widget" #[(button) "\301\302\303\"!\207" [button widget-browse-other-window button-get apropos-symbol] 4] apropos-plist "Properties" "p" "mouse-2, RET: Display more help on this plist" #[(button) "\301\302\303\"!\207" [button apropos-describe-plist button-get apropos-symbol] 4] apropos-library "mouse-2, RET: Display more help on this library" #[(button) "\301\302\303\"!\207" [button apropos-library button-get apropos-symbol] 4]] 14) #@174 Return the next apropos label button after POS, or nil if there's none. Will also return nil if more than one `apropos-symbol' button is encountered before finding a label. (defalias 'apropos-next-label-button #[(pos) "\305\306\"\307 \205 \310 \311\" \205 \310 \304\" \203J \204J \f\312=\203+ \n\204J \f\312=\2033 \306\305\313 !!\211\203 \310 \311\"\310 \304\"\202 \205O ,\207" [pos button already-hit-symbol label type next-button t nil button-get apropos-label apropos-symbol button-start] 4 (#$ . 8927)]) #@120 Make regexp matching any two of the words in WORDS. WILD should be a subexpression matching wildcards between matches. (defalias 'apropos-words-to-regexp #[(words wild) "\301\302!!\211A\204 @\207\303\304\305#\207" [words delete-dups copy-sequence mapconcat #[(w) "\303\304 \303\305\306\307\310\n!\"\311#\304\260\207" [w wild words "\\(?:" "\\)" mapconcat identity delq copy-sequence "\\|"] 11] "\\|"] 5 (#$ . 9458)]) #@285 Read an apropos pattern, either a word list or a regexp. Returns the user pattern, either a list of words which are matched literally, or a string which is used as a regexp to search for. SUBJECT is a string that is included in the prompt to identify what kind of objects to search. (defalias 'apropos-read-pattern #[(subject) "\302\303\304Q!\305 ! \230\203 \306 \307\310#\206 \311\312!\202 )\207" [subject pattern read-string "Search for " " (word list or regexp): " regexp-quote split-string "[ ]+" t user-error "No word list given"] 4 (#$ . 9890)]) #@258 Rewrite a list of words to a regexp matching all permutations. If PATTERN is a string, that means it is already a regexp. This updates variables `apropos-pattern', `apropos-pattern-quoted', `apropos-regexp', `apropos-words', and `apropos-all-words-regexp'. (defalias 'apropos-parse-pattern #[(pattern) "\306\211\n:\203\207 \n\307\310\n\311#\312\f!\306\211\203w @\211\211\203c @\235\203Z \307\310@\313#@A\235\203S \306\211\2020 A\211\2043 B B+A\211\204 *\314 \315\"\314\316\"\211)\207\312\n!\n\n\n\211\207" [apropos-words apropos-all-words pattern words apropos-pattern apropos-pattern-quoted nil mapconcat identity " " regexp-quote "\\|" apropos-words-to-regexp ".+" ".*?" word --dolist-tail-- apropos-synonyms a s syn apropos-all-words-regexp apropos-regexp] 5 (#$ . 10457)]) #@111 Return apropos scores for string STR matching WORDS. Value is a list of offsets of the words into the string. (defalias 'apropos-calc-scores #[(str words) "\306\211\n\203. \n\306\211\203' \f@\307 \"\211\203 B\fA\211\204 \306 *\202; \307 \"\205; \310\224\310\225D*\207" [i scores words word --dolist-tail-- str nil string-match 0 apropos-pattern] 4 (#$ . 11310)]) #@38 Return apropos score for string STR. (defalias 'apropos-score-str #[(str) "\2032 G\211\306\245[\307\"\310\211\203- @\311\n\312 \fZ\312_ \245# A\211\204 \310\n,\207\313\207" [str l score apropos-all-words s --dolist-tail-- 10 apropos-calc-scores nil + 1000 0] 6 (#$ . 11695)]) #@52 Return apropos score for documentation string DOC. (defalias 'apropos-score-doc #[(doc) "G\211\306V\203@ \306\307\"\203 \310\311\f\"\312\211 \2039 @\313\n\314 Z\314_ \245# A\211 \204 \312\n+\202A \306)\207" [doc l score apropos-pattern-quoted apropos-all-words s 0 string-match 10000 apropos-calc-scores nil + 50 --dolist-tail--] 6 (#$ . 11991)]) #@34 Return apropos score for SYMBOL. (defalias 'apropos-score-symbol #[(symbol &optional weight) "\306!\307G\310\"\311\211\203, @\312\n\313 Z \fZ\313_ \245# A\211\204 \311\n \2065 \314_,\207" [symbol l score apropos-words s --dolist-tail-- symbol-name 0 apropos-calc-scores nil + 60 3 weight] 6 (#$ . 12363)]) #@169 Return t if STR is a genuine hit. This may fail if only one of the keywords is matched more than once. This requires at least two keywords (unless only one was given). (defalias 'apropos-true-hit #[(str words) "?\206 ?\206 A?\206 \302 \"G\303V\207" [str words apropos-calc-scores 1] 3 (#$ . 12692)]) #@67 Return t if SYMBOL is not really matched by the current keywords. (defalias 'apropos-false-hit-symbol #[(symbol) "\302\303! \"?\207" [symbol apropos-words apropos-true-hit symbol-name] 3 (#$ . 13005)]) #@64 Return t if STR is not really matched by the current keywords. (defalias 'apropos-false-hit-str #[(str) "\302 \"?\207" [str apropos-words apropos-true-hit] 3 (#$ . 13214)]) #@60 Return t if DOC is really matched by the current keywords. (defalias 'apropos-true-hit-doc #[(doc) "\302 \"\207" [doc apropos-all-words apropos-true-hit] 3 (#$ . 13394)]) #@111 Regenerate current Apropos buffer using `apropos--current'. Intended as a value for `revert-buffer-function'. (defalias 'apropos--revert-buffer #[(_ignore-auto noconfirm) "\204\n \302\303!\205 \304\305 \"\207" [noconfirm apropos--current yes-or-no-p "Revert apropos buffer? " apply funcall] 3 (#$ . 13573)]) (defvar apropos-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [apropos-mode-hook variable-documentation put "Hook run after entering Apropos mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp apropos-mode-map definition-name apropos-mode] 4) (defvar apropos-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" [apropos-mode-abbrev-table apropos-mode-map variable-documentation put purecopy "Keymap for `apropos-mode'." boundp apropos-mode-syntax-table definition-name apropos-mode (lambda (#1=#:def-tmp-var) (defvar apropos-mode-syntax-table #1#)) make-syntax-table "Syntax table for `apropos-mode'." (lambda (#1#) (defvar apropos-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `apropos-mode'." derived-mode-parent special-mode] 5) #@263 Major mode for following hyperlinks in output of apropos commands. \{apropos-mode-map} In addition to any hooks its parent mode `special-mode' might have run, this mode runs the hook `apropos-mode-hook', as the final or penultimate step during initialization. (defalias 'apropos-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<