Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   . . .
   Commands by Topic
      Getting Help
      Moving Around
      Changing Text
      . . .
      Miscellaneous
   Command Reference
      . . .
      python-mode
      push
      query-replace
      quick-dired-command
      quoted-insert
      . . .
   Variable Reference
      abort-file-io
      abort-file-matching
      abort-key
      . . .
      yank-rectangle-to-corner
   . . .

Previous   Up    Next
push  Command Reference   quick-dired-command


Epsilon User's Manual and Reference > Command Reference >

query-replace

Interactively replace strings.  Alt-%

This command behaves like replace-string. Instead of replacing everything automatically, it positions point after each occurrence of the old string, and you may select whether or not to replace it. With a numeric argument, the command will match only complete words.

Y or <Space>
replaces and goes to the next match.

N or <Backspace>
doesn't replace, but goes to the next match.

<Esc>
exits immediately.

.
replaces and then exits.

^
backs up to the previous match.

!
replaces all remaining occurrences.

,
replaces the current match but doesn't go to the next match.

Ctrl-R
enters a recursive edit, allowing you to modify the buffer arbitrarily. When you exit the recursive edit with exit-level, the query-replace continues.

Ctrl-G
exits and returns point to its original location.

Ctrl-W
toggles the state of word mode.

Ctrl-T
toggles the state of regular expression mode (see the description of regex-replace).

Ctrl-C
toggles the state of case-folding.

Any other key
causes query-replace to exit and any command bound to that key to execute.

See the replace-in-region variable to restrict matches to a highlighted region.

More info:

Replacing



Previous   Up    Next
push  Command Reference   quick-dired-command


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.