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-replaceNon-nil means ‘query-replace’ should preserve case in replacements.
list-matching-lines-buffer-name-faceFace used by M-x list-matching-lines to show the names of buffers.
list-matching-lines-current-line-faceFace used by M-x list-matching-lines to highlight the current line.
list-matching-lines-default-context-linesDefault number of context lines included around ‘list-matching-lines’ matches.
list-matching-lines-faceFace used by M-x list-matching-lines to show the text that matches.
list-matching-lines-jump-to-current-lineIf non-nil, M-x list-matching-lines shows the current line highlighted.
list-matching-lines-prefix-faceFace used by M-x list-matching-lines to show the prefix column.
multi-query-replace-mapKeymap that defines additional bindings for multi-buffer replacements.
occur-collect-regexp-historyHistory of regexp for occur’s collect operation.
occur-edit-mode-abbrev-tableAbbrev table for ‘occur-edit-mode’.
occur-edit-mode-hookHook run after entering ‘occur-edit-mode’.
occur-edit-mode-mapKeymap for ‘occur-edit-mode’.
occur-edit-mode-syntax-tableSyntax table for ‘occur-edit-mode’.
occur-excluded-propertiesText properties to discard when copying lines to the *Occur* buffer.
occur-highlight-overlaysOverlays used to temporarily highlight occur matches.
occur-hookHook run by Occur when there are any matches.
occur-menu-mapMenu for ‘occur-mode’.
occur-mode-abbrev-tableAbbrev table for ‘occur-mode’.
occur-mode-find-occurrence-hookHook run by Occur after locating an occurrence.
occur-mode-hookHook run when entering Occur mode.
occur-mode-mapKeymap for ‘occur-mode’.
occur-mode-syntax-tableSyntax table for ‘occur-mode’.
occur-revert-argumentsArguments to pass to ‘occur-1’ to revert an Occur mode buffer.
query-replace-defaultsDefault values of FROM-STRING and TO-STRING for ‘query-replace’.
query-replace-from-history-variableHistory list to use for the FROM argument of ‘query-replace’ commands.
query-replace-from-to-separatorString that separates FROM and TO in the history of replacement pairs.
query-replace-helpHelp message while in ‘query-replace’.
query-replace-highlightNon-nil means to highlight matches during query replacement.
query-replace-highlight-submatchesWhether to highlight regexp subexpressions during query replacement.
query-replace-historyDefault history list for ‘query-replace’ commands.
query-replace-lazy-highlightControls the lazy-highlighting during query replacements.
query-replace-mapKeymap of responses to questions posed by commands like ‘query-replace’.
query-replace-read-from-defaultFunction to get default non-regexp value for ‘query-replace-read-from’.
query-replace-read-from-regexp-defaultFunction to get default regexp value for ‘query-replace-read-from’.
query-replace-show-replacementNon-nil means show substituted replacement text in the minibuffer.
query-replace-skip-read-onlyNon-nil means ‘query-replace’ and friends ignore read-only matches.
query-replace-to-history-variableHistory list to use for the TO argument of ‘query-replace’ commands.
read-regexp-defaults-functionFunction that provides default regexp(s) for ‘read-regexp’.
regexp-historyHistory list for some commands that read regular expressions.
replace-char-foldNon-nil means replacement commands should do character folding in matches.
replace-countNumber of replacements done so far.
replace-lax-whitespaceNon-nil means ‘query-replace’ matches a sequence of whitespace chars.
replace-re-search-functionFunction to use when searching for regexps to replace.
replace-regexp-functionFunction to convert the FROM string of query-replace commands to a regexp.
replace-regexp-lax-whitespaceNon-nil means ‘query-replace-regexp’ matches a sequence of whitespace chars.
replace-search-functionFunction to use when searching for strings to replace.
replace-update-post-hookFunction(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)

matchFace used to highlight matches permanently.
query-replaceFace for highlighting query replacement matches.