8.11 Searching and replacing text

8.11.2 Incremental searches

PressCtrl-S to perform an incremental search (in which every character you type further refines the search). A prompt appears in the echo area, asking you to type a string to search for. As soon as you start typing, the search commences.

Consider the following example: You want to search for the word "defmacro" in a file.

1. Select Edit > Find.

The following prompt appears in the echo area.

I-search:

2. Type the letterd.

The prompt in the echo area changes to

I-search:d

The cursor moves to the first occurrence of "d" after its current position.

3. Type the lettere.

The prompt in the echo area changes to

I-search:de

The cursor moves to the first occurrence of "de".

4. Type the letterf.

The prompt in the echo area changes to

I-search:def

The cursor moves to the first occurrence of "def".

This continues until you stop typing, or until the editor fails to find the string you have typed in the current buffer. If at any point this does occur, the prompt in the echo podium changes to reflect this. For instance, if your file contains the word "defun" but not the word "defmacro", the prompt changes to

Failing I-search: defm

as soon as you typem.


Common LispWorks User Guide, Liquid Common Lisp Version 5.0 - 18 OCT 1996

Generated with Harlequin WebMaker