Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Emacs documentation states that you can use query-replace on filesets to perform find/replace on multiple files.

This lets you perform certain operations, such as visiting, query-replace, and shell commands on all the files at once.

I've opened my particular fileset (i.e. via fileset-open) and attempted query/replace using both:

M-%

and

M-x query-replace

but can't get it to work on anything but the file (buffer) I'm currently in.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

In order to run a command on all the files in a fileset, you have to use the filesets-run-cmd function and the command should be one of the commands that are specified in the filesets-commands variable. Specifically, in your case, you are supposed to run M-xfilesets-run-cmdQuery Replace.

(filesets-run-cmd &optional CMD-NAME FILESET MODE)

Run CMD-NAME (see `filesets-commands') on FILESET.

filesets-commands

Commands to run on filesets. An association list of names, functions, and an argument list (or a function that returns one) to be run on a filesets' files.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.