File: replace.el.html
This package supplies the string and regular-expression replace functions documented in the Emacs user's manual.
Defined variables (47)
case-replace | Non-nil means ‘query-replace’ should preserve case in replacements. |
list-matching-lines-buffer-name-face | Face used by M-x list-matching-lines to show the names of buffers. |
list-matching-lines-current-line-face | Face used by M-x list-matching-lines to highlight the current line. |
list-matching-lines-default-context-lines | Default number of context lines included around ‘list-matching-lines’ matches. |
list-matching-lines-face | Face used by M-x list-matching-lines to show the text that matches. |
list-matching-lines-jump-to-current-line | If non-nil, M-x list-matching-lines shows the current line highlighted. |
list-matching-lines-prefix-face | Face used by M-x list-matching-lines to show the prefix column. |
multi-query-replace-map | Keymap that defines additional bindings for multi-buffer replacements. |
occur-collect-regexp-history | History of regexp for occur’s collect operation. |
occur-edit-mode-abbrev-table | Abbrev table for ‘occur-edit-mode’. |
occur-edit-mode-hook | Hook run after entering ‘occur-edit-mode’. |
occur-edit-mode-map | Keymap for ‘occur-edit-mode’. |
occur-edit-mode-syntax-table | Syntax table for ‘occur-edit-mode’. |
occur-excluded-properties | Text properties to discard when copying lines to the *Occur* buffer. |
occur-highlight-overlays | Overlays used to temporarily highlight occur matches. |
occur-hook | Hook run by Occur when there are any matches. |
occur-menu-map | Menu for ‘occur-mode’. |
occur-mode-abbrev-table | Abbrev table for ‘occur-mode’. |
occur-mode-find-occurrence-hook | Hook run by Occur after locating an occurrence. |
occur-mode-hook | Hook run when entering Occur mode. |
occur-mode-map | Keymap for ‘occur-mode’. |
occur-mode-syntax-table | Syntax table for ‘occur-mode’. |
occur-revert-arguments | Arguments to pass to ‘occur-1’ to revert an Occur mode buffer. |
query-replace-defaults | Default values of FROM-STRING and TO-STRING for ‘query-replace’. |
query-replace-from-history-variable | History list to use for the FROM argument of ‘query-replace’ commands. |
query-replace-from-to-separator | String that separates FROM and TO in the history of replacement pairs. |
query-replace-help | Help message while in ‘query-replace’. |
query-replace-highlight | Non-nil means to highlight matches during query replacement. |
query-replace-highlight-submatches | Whether to highlight regexp subexpressions during query replacement. |
query-replace-history | Default history list for ‘query-replace’ commands. |
query-replace-lazy-highlight | Controls the lazy-highlighting during query replacements. |
query-replace-map | Keymap of responses to questions posed by commands like ‘query-replace’. |
query-replace-read-from-default | Function to get default non-regexp value for ‘query-replace-read-from’. |
query-replace-read-from-regexp-default | Function to get default regexp value for ‘query-replace-read-from’. |
query-replace-show-replacement | Non-nil means show substituted replacement text in the minibuffer. |
query-replace-skip-read-only | Non-nil means ‘query-replace’ and friends ignore read-only matches. |
query-replace-to-history-variable | History list to use for the TO argument of ‘query-replace’ commands. |
read-regexp-defaults-function | Function that provides default regexp(s) for ‘read-regexp’. |
regexp-history | History list for some commands that read regular expressions. |
replace-char-fold | Non-nil means replacement commands should do character folding in matches. |
replace-count | Number of replacements done so far. |
replace-lax-whitespace | Non-nil means ‘query-replace’ matches a sequence of whitespace chars. |
replace-re-search-function | Function to use when searching for regexps to replace. |
replace-regexp-function | Function to convert the FROM string of query-replace commands to a regexp. |
replace-regexp-lax-whitespace | Non-nil means ‘query-replace-regexp’ matches a sequence of whitespace chars. |
replace-search-function | Function to use when searching for strings to replace. |
replace-update-post-hook | Function(s) to call after ‘query-replace’ has found a match in the buffer. |
Defined functions (69)
copy-matching-lines | (REGEXP &optional RSTART REND INTERACTIVE) |
count-matches | (REGEXP &optional RSTART REND INTERACTIVE) |
delete-matching-lines | (REGEXP &optional RSTART REND INTERACTIVE) |
delete-non-matching-lines | (REGEXP &optional RSTART REND INTERACTIVE) |
flush-lines | (REGEXP &optional RSTART REND INTERACTIVE) |
how-many | (REGEXP &optional RSTART REND INTERACTIVE) |
keep-lines | (REGEXP &optional RSTART REND INTERACTIVE) |
keep-lines-read-args | (PROMPT) |
kill-matching-lines | (REGEXP &optional RSTART REND INTERACTIVE) |
list-matching-lines | (REGEXP &optional NLINES REGION) |
map-query-replace-regexp | (REGEXP TO-STRINGS &optional N START END REGION-NONCONTIGUOUS-P) |
multi-occur | (BUFS REGEXP &optional NLINES) |
multi-occur-in-matching-buffers | (BUFREGEXP REGEXP &optional ALLBUFS) |
occur | (REGEXP &optional NLINES REGION) |
occur--highlight-occurrences | (TARGETS) |
occur--set-arrow | () |
occur--targets-start | (TARGETS) |
occur-1 | (REGEXP NLINES BUFS &optional BUF-NAME) |
occur-accumulate-lines | (COUNT &optional KEEP-PROPS PT) |
occur-after-change-function | (BEG END LENGTH) |
occur-cease-edit | () |
occur-context-lines | (OUT-LINE NLINES KEEP-PROPS BEGPT ENDPT CURR-LINE PREV-LINE PREV-AFTER-LINES &optional PREFIX-FACE ORIG-LINE MULTI-OCCUR-P) |
occur-context-menu | (MENU CLICK) |
occur-edit-mode | () |
occur-engine | (REGEXP BUFFERS OUT-BUF NLINES CASE-FOLD TITLE-FACE PREFIX-FACE MATCH-FACE KEEP-PROPS) |
occur-engine-add-prefix | (LINES &optional PREFIX-FACE) |
occur-engine-line | (BEG END &optional KEEP-PROPS) |
occur-find-match | (N SEARCH MESSAGE) |
occur-menu-map | (ARG1) |
occur-mode | () |
occur-mode-display-occurrence | () |
occur-mode-find-occurrence | () |
occur-mode-goto-occurrence | (&optional EVENT) |
occur-mode-goto-occurrence-other-window | () |
occur-mode-mouse-goto | (&optional EVENT) |
occur-next | (&optional N) |
occur-next-error | (&optional ARGP RESET) |
occur-prev | (&optional N) |
occur-regexp-descr | (REGEXP) |
occur-rename-buffer | (&optional UNIQUE-P INTERACTIVE-P) |
occur-revert-function | (IGNORE1 IGNORE2) |
occur-symbol-at-mouse | (EVENT) |
occur-word-at-mouse | (EVENT) |
perform-replace | (FROM-STRING REPLACEMENTS QUERY-FLAG REGEXP-FLAG DELIMITED-FLAG &optional REPEAT-COUNT MAP START END BACKWARD REGION-NONCONTIGUOUS-P) |
query-replace | (FROM-STRING TO-STRING &optional DELIMITED START END BACKWARD REGION-NONCONTIGUOUS-P) |
query-replace--split-string | (STRING) |
query-replace-compile-replacement | (TO REGEXP-FLAG) |
query-replace-descr | (STRING) |
query-replace-read-args | (PROMPT REGEXP-FLAG &optional NOERROR NO-HIGHLIGHT) |
query-replace-read-from | (PROMPT REGEXP-FLAG) |
query-replace-read-from-suggestions | () |
query-replace-read-to | (FROM PROMPT REGEXP-FLAG) |
query-replace-read-transpose-from-to | () |
query-replace-regexp | (REGEXP TO-STRING &optional DELIMITED START END BACKWARD REGION-NONCONTIGUOUS-P) |
read-regexp | (PROMPT &optional DEFAULTS HISTORY) |
read-regexp-case-fold-search | (REGEXP) |
read-regexp-suggestions | () |
replace--push-stack | (REPLACED SEARCH-STR NEXT-REPLACE NEXT-REPLACEMENT MATCH-AGAIN STACK) |
replace--region-filter | (BOUNDS) |
replace-eval-replacement | (EXPRESSION COUNT) |
replace-highlight | (MATCH-BEG MATCH-END RANGE-BEG RANGE-END SEARCH-STRING REGEXP-FLAG DELIMITED-FLAG CASE-FOLD &optional BACKWARD) |
replace-loop-through-replacements | (DATA COUNT) |
replace-match-data | (INTEGERS REUSE &optional NEW) |
replace-match-maybe-edit | (NEWTEXT FIXEDCASE LITERAL NOEDIT MATCH-DATA &optional BACKWARD) |
replace-match-string-symbols | (N) |
replace-quote | (REPLACEMENT) |
replace-regexp | (REGEXP TO-STRING &optional DELIMITED START END BACKWARD REGION-NONCONTIGUOUS-P) |
replace-search | (SEARCH-STRING LIMIT REGEXP-FLAG DELIMITED-FLAG CASE-FOLD &optional BACKWARD) |
replace-string | (FROM-STRING TO-STRING &optional DELIMITED START END BACKWARD REGION-NONCONTIGUOUS-P) |
Defined faces (2)
match | Face used to highlight matches permanently. |
query-replace | Face for highlighting query replacement matches. |