LispWorks Editor User Guide > 3 Command Reference > 3.21 Searching and replacing > 3.21.1 Searching

NextPrevUpTopContentsIndex

search-files

Function

Summary

Search all the files in a list for a string.

Package

editor

Signature

search-files &key string files generator => nil

Arguments

string

A string to search for (prompted if not given)

files

A list of pathnames of files to search

generator

A function to generate the files if none are given

Values

search-files returns nil .

Description

search-files searches all the files in the list for a given string. If a match is found the file is loaded into a buffer with the cursor on the occurrence. Alt+-, makes the search continue until the next occurrence.

Example

CL-USER 91 > (editor:search-files 
                          :files '(".login" ".cshrc") 
                          :string "alias")

LispWorks Editor User Guide (Windows version) - 22 Dec 2009

NextPrevUpTopContentsIndex