comparison lisp/dired-aux.el @ 9660:adcb2e49f6a2

(dired-do-tags-search, dired-do-tags-query-replace): New functions.
author Roland McGrath <roland@gnu.org>
date Sat, 22 Oct 1994 16:00:31 +0000
parents 3cc865a9c0cf
children 5b5406fbd833
comparison
equal deleted inserted replaced
9659:460e14e9cbc4 9660:adcb2e49f6a2
1855 (setq pos (dired-get-subdir-min (car alist))) ; prev dir gets current dir 1855 (setq pos (dired-get-subdir-min (car alist))) ; prev dir gets current dir
1856 (setq alist (cdr alist))))))) 1856 (setq alist (cdr alist)))))))
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