?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/replace.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:51 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/replace.el ;;; in Emacs version 24.3 ;;; 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\306\307&\210\300\310\311\312\304\305\306\307\313\314& \210\300\315\311\316\304\305\306\307\313\314& \207" [custom-declare-variable case-replace t "Non-nil means `query-replace' should preserve case in replacements." :type boolean :group matching replace-lax-whitespace nil "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'." :version "24.3" replace-regexp-lax-whitespace "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 (#$ . 1348)) #@150 Default values of FROM-STRING and TO-STRING for `query-replace'. This is a cons cell (FROM-STRING . TO-STRING), or nil if there is no default value. (defvar query-replace-defaults nil (#$ . 1534)) #@98 Non-nil means `query-replace' uses the last search string. That becomes the "string to replace". (defvar query-replace-interactive nil (#$ . 1737)) (byte-code "\300\301\302\303#\210\304\305\306\307\310\311\312\313\314\315& \210\304\316\317\320\310\311\312\313\314\315& \210\304\321\322\323\312\324\310\311\314\325& \210\304\326\327\330\312\324\310\311\314\331& \210\304\332\327\333\312\324\310\311&\210\304\334\327\335\312\324\310\336\310\311\314\325&\210\337\340\341\342\310\311\314\325&\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-history-variable 'query-replace-history "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." :group matching :type symbol :version "20.3" query-replace-to-history-variable 'query-replace-history "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 nil "Non-nil means `query-replace' and friends ignore read-only matches." boolean "22.1" query-replace-show-replacement t "Non-nil means to show what actual replacement text will be." "23.1" query-replace-highlight "Non-nil means to highlight matches during query replacement." query-replace-lazy-highlight "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 (#$ . 3825)) (defalias 'query-replace-descr #[(string) "\301\302\303#\207" [string mapconcat isearch-text-char-description ""] 4]) #@172 Query and return the `from' argument of a query-replace operation. The return value can also be a pair (FROM . TO) indicating that the user wants to replace FROM with TO. (defalias 'query-replace-read-from #[(prompt regexp-flag) "\203 \203\f \n\202 @\207\306 \203% \307\310\311 @!\311 A!$\202* \307\312\"\212 \203; \313\306#\202P \314\306\211\211 \203K \n\202L @\315&)\316G!\203j \203j @\317 A \"B\202\245 \320\306\315$\210 \203\243 \321\322\"\203\243 \323\324\"\211\325\230\203\223 \326\327!\210\202\236 \330\230\203\236 \326\331!\210\332\333!\210)+\207" [query-replace-interactive regexp-flag regexp-search-ring search-ring history-add-new-input query-replace-defaults nil format "%s (default %s -> %s): " query-replace-descr "%s: " read-regexp read-from-minibuffer t zerop query-replace-compile-replacement add-to-history string-match "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\(\\\\[nt]\\)" match-string 3 "\\n" message "Note: `\\n' here doesn't match a newline; to do that, type C-q C-j instead" "\\t" "Note: `\\t' here doesn't match a tab; to do that, just type TAB" sit-for 2 prompt query-replace-from-history-variable from match] 9 (#$ . 4078)]) #@136 Maybe convert a regexp replacement TO to Lisp. Returns a list suitable for `perform-replace' if necessary, the original string if not. (defalias 'query-replace-compile-replacement #[(to regexp-flag) "\203\232 \306\307 \"\203\232 \310\211\211\311\225 \311\f\312ZOB \fSH \f\310O\n\313=\2034 \314B\202v \n\315=\203v \316 !\317\f@DB\f@9\204[ \f@\242\320=\203m \311H\321U\204m \306\322 \fA#\fA=\203m \fAT\202o \fA \310O)\306\307 \"\204 \323\324 B\"\237\325 !\210\326 A\203\225 \327 B\202\227 @+B\207 \207" [regexp-flag to char list pos end string-match "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\\\[,#]" nil 0 2 35 (number-to-string replace-count) 44 read-from-string replace-quote quote 40 " " delete "" replace-match-string-symbols replace-eval-replacement concat] 4 (#$ . 5273)]) #@66 Query and return the `to' argument of a query-replace operation. (defalias 'query-replace-read-to #[(from prompt regexp-flag) "\306\212\307\310\311\312 \313\n!#\307\211\211\n\314&\315\f\307\314$\210\n\fB\f+\"\207" [history-add-new-input prompt from query-replace-to-history-variable to query-replace-defaults query-replace-compile-replacement nil read-from-minibuffer format "%s %s with: " query-replace-descr t add-to-history regexp-flag] 9 (#$ . 6071)]) (defalias 'query-replace-read-args #[(prompt regexp-flag &optional noerror) "\204 \306 \210\307 \n\"\211:\203 A@\202 \310 \n#\f E*\207" [noerror prompt regexp-flag from to current-prefix-arg barf-if-buffer-read-only query-replace-read-from query-replace-read-to] 5]) #@1490 Replace some occurrences of FROM-STRING with TO-STRING. As each match is found, the user must type a character saying what to do with it. For directions, type \[help-command] at that time. In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. Use \<minibuffer-local-map>\[next-history-element] to pull the last incremental search string to the minibuffer that reads FROM-STRING, or invoke replacements from incremental search with a key sequence like `C-s C-s M-%' to use its current search string as the string to replace. Matching is independent of case if `case-fold-search' is non-nil and FROM-STRING has no uppercase letters. Replacement transfers the case pattern of the old text to the new text, if `case-replace' and `case-fold-search' are non-nil and FROM-STRING has no uppercase letters. (Transferring the case pattern means that if the old text matched is all caps, or capitalized, then its replacement is upcased or capitalized.) If `replace-lax-whitespace' is non-nil, a space or spaces in the string to be replaced will match a sequence of whitespace chars defined by the regexp in `search-whitespace-regexp'. Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace only matches surrounded by word boundaries. Fourth and fifth arg START and END specify the region to operate on. To customize possible responses, change the "bindings" in `query-replace-map'. (defalias 'query-replace #[(from-string to-string &optional delimited start end) "\305 \306\307\n\307\211\f& \207" [from-string to-string delimited start end perform-replace t nil] 10 (#$ . 6821) (let ((common (query-replace-read-args (concat "Query replace" (if current-prefix-arg " word" #1="") (if (and transient-mark-mode mark-active) " in region" #1#)) nil))) (list (nth 0 common) (nth 1 common) (nth 2 common) (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end))))]) (define-key esc-map "%" 'query-replace) #@2454 Replace some things after point matching REGEXP with TO-STRING. As each match is found, the user must type a character saying what to do with it. For directions, type \[help-command] at that time. In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. Use \<minibuffer-local-map>\[next-history-element] to pull the last incremental search regexp to the minibuffer that reads REGEXP, or invoke replacements from incremental search with a key sequence like `C-M-s C-M-s C-M-%' to use its current search regexp as the regexp to replace. Matching is independent of case if `case-fold-search' is non-nil and REGEXP has no uppercase letters. Replacement transfers the case pattern of the old text to the new text, if `case-replace' and `case-fold-search' are non-nil and REGEXP has no uppercase letters. (Transferring the case pattern means that if the old text matched is all caps, or capitalized, then its replacement is upcased or capitalized.) If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp to be replaced will match a sequence of whitespace chars defined by the regexp in `search-whitespace-regexp'. Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace only matches surrounded by word boundaries. Fourth and fifth arg START and END specify the region to operate on. In TO-STRING, `\&' stands for whatever matched the whole of REGEXP, and `\=\N' (where N is a digit) stands for whatever what matched the Nth `\(...\)' in REGEXP. `\?' lets you edit the replacement text in the minibuffer at the given position for each replacement. In interactive calls, the replacement text can contain `\,' followed by a Lisp expression. Each replacement evaluates that expression to compute the replacement string. Inside of that expression, `\&' is a string denoting the whole match as a string, `\N' for a partial match, `\#&' and `\#N' for the whole or a partial match converted to a number with `string-to-number', and `\#' itself for the number of replacements done so far (starting with zero). If the replacement expression is a symbol, write a space after it to terminate it. One space there, if any, will be discarded. When using those Lisp features interactively in the replacement text, TO-STRING is actually made a list instead of a string. Use \[repeat-complex-command] after this command for details. (defalias 'query-replace-regexp #[(regexp to-string &optional delimited start end) "\305 \306\211\n\307\211\f& \207" [regexp to-string delimited start end perform-replace t nil] 10 (#$ . 8898) (let ((common (query-replace-read-args (concat "Query replace" (if current-prefix-arg " word" #1="") " regexp" (if (and transient-mark-mode mark-active) " in region" #1#)) t))) (list (nth 0 common) (nth 1 common) (nth 2 common) (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end))))]) (define-key esc-map [67108901] 'query-replace-regexp) #@1827 Replace some things after point matching REGEXP with the result of TO-EXPR. Interactive use of this function is deprecated in favor of the `\,' feature of `query-replace-regexp'. For non-interactive use, a loop using `search-forward-regexp' and `replace-match' is preferred. As each match is found, the user must type a character saying what to do with it. For directions, type \[help-command] at that time. TO-EXPR is a Lisp expression evaluated to compute each replacement. It may reference `replace-count' to get the number of replacements already made. If the result of TO-EXPR is not a string, it is converted to one using `prin1-to-string' with the NOESCAPE argument (which see). For convenience, when entering TO-EXPR interactively, you can use `\&' or `\0' to stand for whatever matched the whole of REGEXP, and `\N' (where N is a digit) to stand for whatever matched the Nth `\(...\)' in REGEXP. Use `\#&' or `\#N' if you want a number instead of a string. In interactive use, `\#' in itself stands for `replace-count'. In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. Use \<minibuffer-local-map>\[next-history-element] to pull the last incremental search regexp to the minibuffer that reads REGEXP. Preserves case in each replacement if `case-replace' and `case-fold-search' are non-nil and REGEXP has no uppercase letters. If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp to be replaced will match a sequence of whitespace chars defined by the regexp in `search-whitespace-regexp'. Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace only matches that are surrounded by word boundaries. Fourth and fifth arg START and END specify the region to operate on. (defalias 'query-replace-regexp-eval #[(regexp to-expr &optional delimited start end) "\305\306 B\307\310\n\311\211\f& \207" [regexp to-expr delimited start end perform-replace replace-eval-replacement t literal nil] 10 (#$ . 11958) (progn (barf-if-buffer-read-only) (let* ((from (let ((query-replace-to-history-variable nil)) (query-replace-read-from "Query replace regexp" t))) (to (list (read-from-minibuffer (format "Query replace regexp %s with eval: " (query-replace-descr from)) nil nil t query-replace-to-history-variable from t)))) (replace-match-string-symbols to) (list from (car to) current-prefix-arg (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end)))))]) (make-obsolete 'query-replace-regexp-eval "use the `\\,' feature of `query-replace-regexp'\nfor interactive calls, and `search-forward-regexp'/`replace-match'\nfor Lisp calls." "22.1") #@851 Replace some matches for REGEXP with various strings, in rotation. The second argument TO-STRINGS contains the replacement strings, separated by spaces. This command works like `query-replace-regexp' except that each successive replacement uses the next successive replacement string, wrapping around from the last such string to the first. In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. Non-interactively, TO-STRINGS may be a list of replacement strings. Use \<minibuffer-local-map>\[next-history-element] to pull the last incremental search regexp to the minibuffer that reads REGEXP. A prefix argument N says to use each replacement string N times before rotating to the next. Fourth and fifth arg START and END specify the region to operate on. (defalias 'map-query-replace-regexp #[(regexp to-strings &optional n start end) "\306 <\203\f \202? G\307U\204? \310\311 \"\2033 \312 \307\310\311 \"OC\" \310\311 \"T\306O\211\202 \312 C\"\313\211\202 \314\n\315\211\306\306\f & )\207" [replacements to-strings regexp n start end nil 0 string-match " " append "" perform-replace t] 11 (#$ . 14715) (let* ((from (read-regexp "Map query replace (regexp): " nil query-replace-from-history-variable)) (to (read-from-minibuffer (format "Query replace %s with (space-separated strings): " (query-replace-descr from)) nil nil nil query-replace-to-history-variable from t))) (list from to (and current-prefix-arg (prefix-numeric-value current-prefix-arg)) (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end))))]) #@1320 Replace occurrences of FROM-STRING with TO-STRING. Preserve case in each match if `case-replace' and `case-fold-search' are non-nil and FROM-STRING has no uppercase letters. (Preserving case means that if the string matched is all caps, or capitalized, then its replacement is upcased or capitalized.) If `replace-lax-whitespace' is non-nil, a space or spaces in the string to be replaced will match a sequence of whitespace chars defined by the regexp in `search-whitespace-regexp'. In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace only matches surrounded by word boundaries. Fourth and fifth arg START and END specify the region to operate on. Use \<minibuffer-local-map>\[next-history-element] to pull the last incremental search string to the minibuffer that reads FROM-STRING. This function is usually the wrong thing to use in a Lisp program. What you probably want is a loop like this: (while (search-forward FROM-STRING nil t) (replace-match TO-STRING nil t)) which will run faster and will not set the mark or print anything. (You may need a more complex loop if FROM-STRING can match the null string and TO-STRING is also null.) (defalias 'replace-string #[(from-string to-string &optional delimited start end) "\305 \306\211\n\306\211\f& \207" [from-string to-string delimited start end perform-replace nil] 10 (#$ . 16406) (let ((common (query-replace-read-args (concat "Replace" (if current-prefix-arg " word" #1="") " string" (if (and transient-mark-mode mark-active) " in region" #1#)) nil))) (list (nth 0 common) (nth 1 common) (nth 2 common) (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end))))]) #@2195 Replace things after point matching REGEXP with TO-STRING. Preserve case in each match if `case-replace' and `case-fold-search' are non-nil and REGEXP has no uppercase letters. If `replace-regexp-lax-whitespace' is non-nil, a space or spaces in the regexp to be replaced will match a sequence of whitespace chars defined by the regexp in `search-whitespace-regexp'. In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace only matches surrounded by word boundaries. Fourth and fifth arg START and END specify the region to operate on. In TO-STRING, `\&' stands for whatever matched the whole of REGEXP, and `\=\N' (where N is a digit) stands for whatever what matched the Nth `\(...\)' in REGEXP. `\?' lets you edit the replacement text in the minibuffer at the given position for each replacement. In interactive calls, the replacement text may contain `\,' followed by a Lisp expression used as part of the replacement text. Inside of that expression, `\&' is a string denoting the whole match, `\N' a partial match, `\#&' and `\#N' the respective numeric values from `string-to-number', and `\#' itself for `replace-count', the number of replacements occurred so far. If your Lisp expression is an identifier and the next letter in the replacement string would be interpreted as part of it, you can wrap it with an expression like `\,(or \#)'. Incidentally, for this particular case you may also enter `\#' in the replacement text directly. When using those Lisp features interactively in the replacement text, TO-STRING is actually made a list instead of a string. Use \[repeat-complex-command] after this command for details. Use \<minibuffer-local-map>\[next-history-element] to pull the last incremental search regexp to the minibuffer that reads REGEXP. This function is usually the wrong thing to use in a Lisp program. What you probably want is a loop like this: (while (re-search-forward REGEXP nil t) (replace-match TO-STRING nil nil)) which will run faster and will not set the mark or print anything. (defalias 'replace-regexp #[(regexp to-string &optional delimited start end) "\305 \306\307\n\306\211\f& \207" [regexp to-string delimited start end perform-replace nil t] 10 (#$ . 18277) (let ((common (query-replace-read-args (concat "Replace" (if current-prefix-arg " word" #1="") " regexp" (if (and transient-mark-mode mark-active) " in region" #1#)) t))) (list (nth 0 common) (nth 1 common) (nth 2 common) (if (and transient-mark-mode mark-active) (region-beginning)) (if (and transient-mark-mode mark-active) (region-end))))]) #@158 History list for some commands that read regular expressions. Maximum length of the history list is determined by the value of `history-length', which see. (defvar regexp-history nil (#$ . 21012)) #@49 History of regexp for occur's collect operation (defvar occur-collect-regexp-history '("\\1") (#$ . 21216)) #@532 Read and return a regular expression as a string. When PROMPT doesn't end with a colon and space, it adds a final ": ". If DEFAULTS is non-nil, it displays the first default in the prompt. Non-nil optional arg DEFAULTS is a string or a list of strings that are prepended to a list of standard default values, which include the string at point, the last isearch regexp, the last isearch string, and the last replacement regexp. Non-nil HISTORY is a symbol to use for the history list. If HISTORY is nil, `regexp-history' is used. (defalias 'read-regexp #[(prompt &optional defaults history) ":\203\n @\202 \306<\203 \202 C\307\n\206$ \302N\206$ \310 \206) \311!\f@\307 @\2063 \311!J@F\"\312\313\314\315\311\"\"!\314\316\317\314\320\321#,\203g \202{ \203v \322\323\324 !#\202{ \322\325\"\314\211\211\206\204 \326\320&\211 \311\232\203\231 \206\246 \202\246 \327\206\242 \326 \"\210-\207" [defaults default find-tag-default-function major-mode regexp-search-ring search-ring append regexp-quote find-tag-default "" delete-dups delq nil delete read-from-minibuffer ":[ ]*\\'" t string-match format "%s (default %s): " query-replace-descr "%s: " regexp-history add-to-history query-replace-from-history-variable history-add-new-input prompt start string regexp inhibit-changing-match-data history input] 9 (#$ . 21331)]) (byte-code "\300\301\302\"\210\300\303\304\"\210\300\305\306\"\207" [defalias delete-non-matching-lines keep-lines delete-matching-lines flush-lines count-matches how-many] 3) #@106 Read arguments for `keep-lines' and friends. Prompt for a regexp with PROMPT. Value is a list, (REGEXP). (defalias 'keep-lines-read-args #[(prompt) "\301!\302\211\303F\207" [prompt read-regexp nil t] 4 (#$ . 22887)]) #@1149 Delete all lines except those containing matches for REGEXP. A match split across lines preserves all the lines it lies in. When called from Lisp (and usually interactively as well, see below) applies to all lines starting after point. If REGEXP contains upper case characters (excluding those preceded by `\') and `search-upper-case' is non-nil, the matching is case-sensitive. Second and third arg RSTART and REND specify the region to operate on. This command operates on (the accessible part of) all lines whose accessible part is entirely contained in the region determined by RSTART and REND. (A newline ending a line counts as part of that line.) Interactively, in Transient Mark mode when the mark is active, operate on all lines whose accessible part is entirely contained in the region. Otherwise, the command applies to all lines starting after point. When calling this function from Lisp, you can pretend that it was called interactively by passing a non-nil INTERACTIVE argument. This function starts looking for the next match from the end of the previous match. Hence, it ignores matches that overlap a previously found match. (defalias 'keep-lines #[(regexp &optional rstart rend interactive) "\203! ^b\210\212 ]b\210n\204 m\204 \306y\210\307 )\202M \n\203E \203E \f\203E \310 \311 b\210n\204? m\204? \306y\210\307 \202J `\312 b\210\212n\204U \313y\210` \203g \203g \314\315\"\202h ` W\203\271 \316 \317#\204\202 |\210\202\235 \212\306\224b\210\306y\210`)W\203\234 |\210)\212\313y\210`)` W\203k \306\224\306\225U\203k \313u\210\202k + \320\211\223\210\320\207" [rstart rend interactive transient-mark-mode mark-active case-fold-search 0 point-marker region-beginning region-end point-max-marker 1 isearch-no-upper-case-p t re-search-forward move nil search-upper-case regexp start end] 4 (#$ . 23113) (byte-code "\300 \210\301\302!\207" [barf-if-buffer-read-only keep-lines-read-args "Keep lines containing match for regexp"] 2)]) #@1134 Delete lines containing matches for REGEXP. When called from Lisp (and usually when called interactively as well, see below), applies to the part of the buffer after point. The line point is in is deleted if and only if it contains a match for regexp starting after point. If REGEXP contains upper case characters (excluding those preceded by `\') and `search-upper-case' is non-nil, the matching is case-sensitive. Second and third arg RSTART and REND specify the region to operate on. Lines partially contained in this region are deleted if and only if they contain a match entirely contained in it. Interactively, in Transient Mark mode when the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of (the accessible portion of) the buffer. When calling this function from Lisp, you can pretend that it was called interactively by passing a non-nil INTERACTIVE argument. If a match is split across lines, all the lines it lies in are deleted. They are deleted _before_ looking for the next match. Hence, a match starting on the same line at which another match ended is ignored. (defalias 'flush-lines #[(regexp &optional rstart rend interactive) "\203 ^b\210\306 ]!\2021 \n\203) \203) \f\203) \307 \306\310 !\202. `\311 b\210 \203B \203B \312\313\"\202C \212` W\203g \314 \313#\203g \212\315\224b\210\315y\210`)\316y\210`|\210\202E * \317\211\223\210\317\207" [rstart rend interactive transient-mark-mode mark-active case-fold-search copy-marker region-beginning region-end point-max-marker isearch-no-upper-case-p t re-search-forward 0 1 nil search-upper-case regexp] 4 (#$ . 25112) (byte-code "\300 \210\301\302!\207" [barf-if-buffer-read-only keep-lines-read-args "Flush lines containing match for regexp"] 2)]) #@815 Print and return number of matches for REGEXP following point. When called from Lisp and INTERACTIVE is omitted or nil, just return the number, do not print it; if INTERACTIVE is t, the function behaves in all respects as if it had been called interactively. If REGEXP contains upper case characters (excluding those preceded by `\') and `search-upper-case' is non-nil, the matching is case-sensitive. Second and third arg RSTART and REND specify the region to operate on. Interactively, in Transient Mark mode when the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of (the accessible portion of) the buffer. This function starts looking for the next match from the end of the previous match. Hence, it ignores matches that overlap a previously found match. (defalias 'how-many #[(regexp &optional rstart rend interactive) "\212\203 ^b\210 ]\202- \n\203&