unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20195: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg
@ 2015-03-25  3:56 Drew Adams
  2015-03-25 21:50 ` Juri Linkov
  0 siblings, 1 reply; 10+ messages in thread
From: Drew Adams @ 2015-03-25  3:56 UTC (permalink / raw)
  To: 20195


Enhancement request:

Typically in Dired commands that act on the marked files will act on the
next PREFIX-ARG files instead, if a prefix arg is provided.  This is not
true of commands such as `dired-do-search', but it would be good if it
were.

All that is needed is to (a) add an optional argument ARG to each such
command and (b) include ARG in the call to `dired-get-marked-files'.
For example:

(defun dired-do-search (regexp &optional arg) ; <=== Add ARG
  "..."
  (interactive "sSearch marked files (regexp): \nP")
  (tags-search
    regexp (dired-get-marked-files nil arg 'dired-nondirectory-p)))
                                        ^
                                        |
                                     use ARG


In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-02-03 21:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25  3:56 bug#20195: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg Drew Adams
2015-03-25 21:50 ` Juri Linkov
2015-03-25 23:08   ` Drew Adams
2015-03-31 20:33     ` Juri Linkov
2015-03-31 21:22       ` Drew Adams
2015-03-31 21:54         ` Filipp Gunbin
2015-04-01  0:36           ` Drew Adams
2015-04-02 13:32             ` Filipp Gunbin
2015-04-02 14:01               ` Drew Adams
2022-02-03 21:19       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).