diff options
| author | Roland McGrath | 1994-10-22 16:00:31 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-10-22 16:00:31 +0000 |
| commit | 2297e912cf869184cd5be2f8ea5b7e73d8d08067 (patch) | |
| tree | 4495d1f73cce218f3448eeef6ab05c043b65af6d /lisp | |
| parent | 866a70355c45f6ec409908b7975824e4a34a2962 (diff) | |
| download | emacs-2297e912cf869184cd5be2f8ea5b7e73d8d08067.tar.gz emacs-2297e912cf869184cd5be2f8ea5b7e73d8d08067.zip | |
(dired-do-tags-search, dired-do-tags-query-replace): New functions.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/dired-aux.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index faf69620148..878e5c57108 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -1857,6 +1857,28 @@ Use \\[dired-hide-subdir] to (un)hide a particular subdirectory." | |||
| 1857 | 1857 | ||
| 1858 | ;;;###end dired-ins.el | 1858 | ;;;###end dired-ins.el |
| 1859 | 1859 | ||
| 1860 | |||
| 1861 | ;; Functions for searching in tags style among marked files. | ||
| 1862 | |||
| 1863 | ;;;###autoload | ||
| 1864 | (defun dired-do-tags-search (regexp) | ||
| 1865 | "Search through all marked files for a match for REGEXP. | ||
| 1866 | Stops when a match is found. | ||
| 1867 | To continue searching for next match, use command \\[tags-loop-continue]." | ||
| 1868 | (interactive "sSearch marked files (regexp): ") | ||
| 1869 | (tags-search regexp '(dired-get-marked-files))) | ||
| 1870 | |||
| 1871 | ;;;###autoload | ||
| 1872 | (defun dired-do-tags-query-replace (from to &optional delimited) | ||
| 1873 | "Query-replace-regexp FROM with TO through all marked files. | ||
| 1874 | Third arg DELIMITED (prefix arg) means replace only word-delimited matches. | ||
| 1875 | If you exit (\\[keyboard-quit] or ESC), you can resume the query-replace | ||
| 1876 | with the command \\[tags-loop-continue]." | ||
| 1877 | (interactive | ||
| 1878 | "sQuery replace in marked files (regexp): \nsQuery replace %s by: \nP") | ||
| 1879 | (tags-query-replace from to delimited '(dired-get-marked-files))) | ||
| 1880 | |||
| 1881 | |||
| 1860 | (provide 'dired-aux) | 1882 | (provide 'dired-aux) |
| 1861 | 1883 | ||
| 1862 | ;;; dired-aux.el ends here | 1884 | ;;; dired-aux.el ends here |