Next Previous Up Top Contents Index

search-files

3.19.3 Replacement

Replace String

Editor Command

Arguments: target replacement
Key sequence: None
editor:replace-string-command p &optional target replacement

Replaces all occurrences of target string by replacement string, starting from the current point.
Query Replace

Editor Command

Arguments: target replacement
Key sequence: +Shift+% target replacement
editor:query-replace-command p &optional target replacement

Replaces occurrences of target string by replacement string, starting from the current point, but only after querying the user. Each time target is found, an action must be indicated from the keyboard.
Whenever replacement is substituted for target, case may be preserved, depending on the value of the editor variableCase-Replace.
The following key sequences are used to controlQuery Replace:

Space ory

Replace target by replacement and move to the next occurrence of target.

Delete

Skip target without replacing it and move to the next occurrence of target.

.

Replace target by replacement and then exit.

!

Replace all subsequent occurrences of target by replacement without prompting.

Ctrl+R

Enter recursive edit. This allows the current occurrence of target to be edited. When this editing is completed,Exit Recursive Edit should be invoked. The next instance of target is then found.

Esc

Quit fromQuery Replace with no further replacements.

Directory Query Replace

Editor Command

Arguments: directory target replacement
Key sequence: None
Replaces occurrences of target string by replacement string for each file with the suffix.lisp or .lspin directory, but only after querying the user. The current working directory is offered as a default for directory. A non-nil prefix argument causes all files to be searched, except for those ending with one of the strings in the listsystem:*ignorable-file-suffices*. Each time target is found, an action must be indicated from the keyboard. For details of possible actions seeQuery Replace.
System Query Replace

Editor Command

Arguments: system target replacement
Key sequence: None
Replaces occurrences of target string by replacement string, for each file in system, but only after querying the user. Each time target is found, an action must be indicated from the keyboard. For details of possible actions seeQuery Replace.
Case-Replace

Editor Variable

Default value:t
If the value of this variable ist,Replace StringandQuery Replace try to preserve case when doing replacements. If its value isnil, the case of the replacement string is as defined by the user.

LispWorks Editor User Guide - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker