Optimise usability of wgrep

Viewed 645

I'm using wgrep quite often for refactoring and generally it performs quite well. However, there are some minor annoyances which I hope can be resolved:

  1. After doing an rgrep search, changing to wgrep and performing the changes in the rgrep buffer, wgrep will open all files that are to be changed and executes the modifications. However, when doing so, the files are opened normally in emacs, thus they will undergo the normal mode-loading stuff, which can take quite some time if this action involves large source files which are parsed.

    Is it possible modify wgrep such that it opens the files in the most basic mode (I guess fundamental-mode normal-mode) instead?

  2. After executing the changes, wgrep will not close any newly opened buffers.

    Is it possible to change wgrep such that it will automatically close any buffers that were opened during the execution phase (i.e. buffers which were not opened before the wgrep procedure started).

Finally, the meta question: Is this rather an issue to be posted to the issue tracker of the wgrep developer or is it a proper StackOverflow question?

1 Answers
Related