%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/replace.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313&\210\302\314\304\305\315DD\316\310\311\312\313\317\320& \210\302\321\304\305\322DD\323\310\311\312\313\317\324& \210\302\325\304\305\326DD\327\310\311\312\313\317\324& \207" [require text-mode custom-declare-variable case-replace funcall function #[0 "\300\207" [t] 1] "Non-nil means `query-replace' should preserve case in replacements." :type boolean :group matching replace-char-fold #[0 "\300\207" [nil] 1] "Non-nil means replacement commands should do character folding in matches.\nThis means, for instance, that \\=' will match a large variety of\nUnicode quotes.\nThis variable affects `query-replace' and `replace-string', but not\n`replace-regexp'." :version "25.1" replace-lax-whitespace #[0 "\300\207" [nil] 1] "Non-nil means `query-replace' matches a sequence of whitespace chars.\nWhen you enter a space or spaces in the strings to be replaced,\nit will match any sequence matched by the regexp `search-whitespace-regexp'." "24.3" replace-regexp-lax-whitespace #[0 "\300\207" [nil] 1] "Non-nil means `query-replace-regexp' matches a sequence of whitespace chars.\nWhen you enter a space or spaces in the regexps to be replaced,\nit will match any sequence matched by the regexp `search-whitespace-regexp'."] 10) #@133 Default history list for query-replace commands. See `query-replace-from-history-variable' and `query-replace-to-history-variable'. (defvar query-replace-history nil (#$ . 1704)) #@161 Default values of FROM-STRING and TO-STRING for `query-replace'. This is a list of cons cells (FROM-STRING . TO-STRING), or nil if there are no default values. (defvar query-replace-defaults nil (#$ . 1890)) #@98 Non-nil means `query-replace' uses the last search string. That becomes the "string to replace". (defvar query-replace-interactive nil (#$ . 2104)) (byte-code "\300\301\302\303#\210\304\305\306\307\310DD\311\312\313\314\315\316\317& \210\304\320\306\307\321DD\322\312\313\314\323\316\324& \210\304\325\306\307\326DD\327\312\313\314\323\316\324& \210\304\330\306\307\331DD\332\314\333\312\313\316\334& \210\304\335\306\307\336DD\337\314\333\312\313\316\340& \210\304\341\306\307\342DD\343\314\333\312\313&\210\304\344\306\307\345DD\346\314\333\312\347\312\313\316\334&\210\350\351\352\353\312\313\316\334&\207" [make-obsolete-variable query-replace-interactive "use `M-n' to pull the last incremental search string\nto the minibuffer that reads the string to replace, or invoke replacements\nfrom Isearch by using a key sequence like `C-s C-s M-%'." "24.3" custom-declare-variable query-replace-from-to-separator funcall function #[0 "\300\207" [#1=" → "] 1 #1#] "String that separates FROM and TO in the history of replacement pairs.\nWhen nil, the pair will not be added to the history (same behavior\nas in emacs 24.5)." :group matching :type (choice (const :tag "Disabled" nil) string) :version "25.1" query-replace-from-history-variable #[0 "\300\207" [query-replace-history] 1] "History list to use for the FROM argument of `query-replace' commands.\nThe value of this variable should be a symbol; that symbol\nis used as a variable to hold a history list for the strings\nor patterns to be replaced." symbol "20.3" query-replace-to-history-variable #[0 "\300\207" [query-replace-history] 1] "History list to use for the TO argument of `query-replace' commands.\nThe value of this variable should be a symbol; that symbol\nis used as a variable to hold a history list for replacement\nstrings or patterns." query-replace-skip-read-only #[0 "\300\207" [nil] 1] "Non-nil means `query-replace' and friends ignore read-only matches." boolean "22.1" query-replace-show-replacement #[0 "\300\207" [t] 1] "Non-nil means show substituted replacement text in the minibuffer.\nThis variable affects only `query-replace-regexp'." "23.1" query-replace-highlight #[0 "\300\207" [t] 1] "Non-nil means to highlight matches during query replacement." query-replace-lazy-highlight #[0 "\300\207" [t] 1] "Controls the lazy-highlighting during query replacements.\nWhen non-nil, all text in the buffer matching the current match\nis highlighted lazily using isearch lazy highlighting (see\n`lazy-highlight-initial-delay' and `lazy-highlight-interval')." lazy-highlight custom-declare-face query-replace ((t (:inherit isearch))) "Face for highlighting query replacement matches."] 12) #@91 Number of replacements done so far. See `replace-regexp' and `query-replace-regexp-eval'. (defvar replace-count 0 (#$ . 4785)) #@15 (fn STRING) (defalias 'query-replace-descr #[257 "\300!\262\211G\301\211W\203N \211H\211\302W\2030 \303\211T\304\305\306\307\310\\\"\311\312#D$\210\202E \211\313U\203E \303\211T\304\305\314\311\312#D$\210\266\211T\262\202 \266\207" [copy-sequence 0 32 add-text-properties display propertize format "^%c" 64 face escape-glyph 127 "^?"] 14 (#$ . 4918)]) #@76 Split string STRING at a substring with property `separator'. (fn STRING) (defalias 'query-replace--split-string #[257 "\211G\300\301\302\303%\211\204 \202* \304\301#\305\306T\302\303\n%\206' #B\207" [text-property-any 0 separator t substring substring-no-properties text-property-not-all] 12 (#$ . 5295)]) #@277 Query and return the `from' argument of a query-replace operation. Prompt with PROMPT. REGEXP-FLAG non-nil means the response should be a regexp. The return value can also be a pair (FROM . TO) indicating that the user wants to replace FROM with TO. (fn PROMPT REGEXP-FLAG) (defalias 'query-replace-read-from #[514 "\203 \211\203\f \202 \n@\207\306\f\205&