From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg Date: Wed, 25 Mar 2015 23:50:52 +0200 Organization: LINKOV.NET Message-ID: <87619oiw5f.fsf@mail.linkov.net> References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427320766 24266 80.91.229.3 (25 Mar 2015 21:59:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2015 21:59:26 +0000 (UTC) Cc: 20195@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 25 22:59:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YatKS-0004uo-3P for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Mar 2015 22:59:12 +0100 Original-Received: from localhost ([::1]:41534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YatKR-0007p1-Fd for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Mar 2015 17:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YatIU-0004Yl-84 for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 17:57:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YatIM-00009o-Lv for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 17:57:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YatIM-00009e-HO for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 17:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YatIM-0002ab-DX for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 17:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Mar 2015 21:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20195 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20195-submit@debbugs.gnu.org id=B20195.14273205829897 (code B ref 20195); Wed, 25 Mar 2015 21:57:02 +0000 Original-Received: (at 20195) by debbugs.gnu.org; 25 Mar 2015 21:56:22 +0000 Original-Received: from localhost ([127.0.0.1]:36675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YatHi-0002ZY-Ac for submit@debbugs.gnu.org; Wed, 25 Mar 2015 17:56:22 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:34422 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YatHa-0002ZE-L1 for 20195@debbugs.gnu.org; Wed, 25 Mar 2015 17:56:15 -0400 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id E81F745807C; Wed, 25 Mar 2015 14:56:12 -0700 (PDT) Original-Received: from localhost.linkov.net (85.253.154.202.cable.starman.ee [85.253.154.202]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 1F722458079; Wed, 25 Mar 2015 14:56:11 -0700 (PDT) In-Reply-To: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default> (Drew Adams's message of "Tue, 24 Mar 2015 20:56:26 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100935 Archived-At: > 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 There is a problem with `dired-do-query-replace-regexp' where a prefix arg means replace word-delimited matches.