GNU bug report logs - #20195
25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Wed, 25 Mar 2015 03:57:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 2 Apr 2015 14:01:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 02 10:01:28 2015
Received: from localhost ([127.0.0.1]:43406 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YdfgV-0005ne-RU
	for submit <at> debbugs.gnu.org; Thu, 02 Apr 2015 10:01:28 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:29568)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1YdfgT-0005nP-9L
 for 20195 <at> debbugs.gnu.org; Thu, 02 Apr 2015 10:01:25 -0400
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 t32E1IjQ009400
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Thu, 2 Apr 2015 14:01:18 GMT
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t32E1HJn013063
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Thu, 2 Apr 2015 14:01:17 GMT
Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20])
 by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t32E1H8u011813;
 Thu, 2 Apr 2015 14:01:17 GMT
MIME-Version: 1.0
Message-ID: <a9e89073-b1a3-4e22-a84a-bf954d2cdfb0@default>
Date: Thu, 2 Apr 2015 07:01:15 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
Subject: RE: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search'
 (`A') use prefix arg
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
 <d0f460fc-f454-4faf-946a-b652831517c1@default>
 <87h9t0oqj1.fsf@HIDDEN>
 <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default> <m2pp7ozvc6.fsf@HIDDEN>
 <849043fc-73d9-45cc-ad33-30ccf7f7b077@default> <m27ftuwt84.fsf@HIDDEN>
In-Reply-To: <m27ftuwt84.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2  (807160) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0021.oracle.com [156.151.31.71]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

> > See above.  There are *many* ways to do the same thing in Dired (and
> > elsewhere in Emacs).  In and of itself, eliminating such "duplication"
> > is a silly goal (IMHO).
>=20
> But it's rather convenient to keep in memory that:
> 1) First mark files you want to process.  To augment mark behaviour
>    (e.g. mark all files in a subdir) specify prefix arg to the mark
>    command or use a corresponding specific command.
> 2) Perform search/replace.  To augment search/replace behavior (like
>    toggle word searching) you have to specify prefix argument to the
>    search/replace command.

Yes, there are multiple ways to do the same thing in Dired.  Nothing
in this enhancement will prevent you from always doing things the way
you prefer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 2 Apr 2015 13:33:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 02 09:33:08 2015
Received: from localhost ([127.0.0.1]:43195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YdfF5-0003gQ-4E
	for submit <at> debbugs.gnu.org; Thu, 02 Apr 2015 09:33:07 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60320)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <fgunbin@HIDDEN>) id 1YdfEy-0003g3-Tg
 for 20195 <at> debbugs.gnu.org; Thu, 02 Apr 2015 09:33:04 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
 by mailout.nyi.internal (Postfix) with ESMTP id 430E120A4F
 for <20195 <at> debbugs.gnu.org>; Thu,  2 Apr 2015 09:32:54 -0400 (EDT)
Received: from frontend2 ([10.202.2.161])
 by compute2.internal (MEProxy); Thu, 02 Apr 2015 09:32:57 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc
 :content-type:date:from:in-reply-to:message-id:mime-version
 :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=8WWY8
 5Q3r9QtgHVHDWVC53xu6OQ=; b=OAvrNhBEl+zpBlrTM1gybx7OTF5feWB5YmLXP
 hh6V1ws3IRU+Sr+xbDaKYrVobjoZkB7C50jRJa2i6BT/YH/qZKvy/gpXuCHOGtVf
 EEiWL4pD13wXdYWMKBX3/BhEcQF7ihsQkjfUXXExhyBhj8kHcy0kpnDkrUV2A1q0
 D84NB0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-sasl-enc
 :x-sasl-enc; s=smtpout; bh=8WWY85Q3r9QtgHVHDWVC53xu6OQ=; b=bsKbZ
 qpanP6BmziJT4oYneJdX1M5pSKqBp1YRiQedwT2GeVt6bFBfT6WmB/IyhwZpFOsN
 kd4TH4cWA9/2nEdPMsISyyrWNS1MFhwxJxYAKPPcnGlBK3VSDYzF8Q27Bqbj8Ii4
 W6Q/IyzZlKDmwpwGv81fYSqmZTF2dYKaSOza2Y=
X-Sasl-enc: jJW1DZoAYlOz9UUbwGXYvT3Bsgy+QcdKtnMQqiJi/brX 1427981577
Received: from fgunbin.local (unknown [94.25.218.10])
 by mail.messagingengine.com (Postfix) with ESMTPA id DDF416801F3;
 Thu,  2 Apr 2015 09:32:56 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#20195: 25.0.50;
 Let Dired commands such as `dired-do-search' (`A') use prefix arg
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
 <d0f460fc-f454-4faf-946a-b652831517c1@default>
 <87h9t0oqj1.fsf@HIDDEN>
 <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default>
 <m2pp7ozvc6.fsf@HIDDEN>
 <849043fc-73d9-45cc-ad33-30ccf7f7b077@default>
Date: Thu, 02 Apr 2015 16:32:59 +0300
In-Reply-To: <849043fc-73d9-45cc-ad33-30ccf7f7b077@default> (Drew Adams's
 message of "Tue, 31 Mar 2015 17:36:16 -0700 (PDT)")
Message-ID: <m27ftuwt84.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 31/03/2015 17:36 -0700, Drew Adams wrote:

>> A movement command
>
> I don't think there has been any mention of any movement commands.
> What did you have in mind?

I meant other commands like `dired-next-line', just for comparison.

>> is ok to take argument specifying a number of files,
>> because that number is related to that command's main purpose.  But here
>> files are collected according to marks set in the buffer, so it's kind
>> of duplication to provide the same functionality via prefix argument.
>
> See above.  There are *many* ways to do the same thing in Dired (and
> elsewhere in Emacs).  In and of itself, eliminating such "duplication"
> is a silly goal (IMHO).

But it's rather convenient to keep in memory that:

1) First mark files you want to process.  To augment mark behaviour
(e.g. mark all files in a subdir) specify prefix arg to the mark command
or use a corresponding specific command.

2) Perform search/replace.  To augment search/replace behavior (like
toggle word searching) you have to specify prefix argument to the
search/replace command.

> To be clear:
>
> 1. I don't really care whether Emacs adds that feature (multiple `C-u'
> acts on all, ignoring markings).  And that feature is not what this
> enhancement request is about.
>
> 2. As one user, I use that feature quite often (with Dired+).  If
> you don't find it useful, and you prefer to always mark and unmark,
> that's fine by me. ;-)

Yes, my comment was just a note.

Filipp




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 1 Apr 2015 00:36:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 20:36:28 2015
Received: from localhost ([127.0.0.1]:41537 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yd6dw-0004LX-Al
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2015 20:36:28 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:42383)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1Yd6du-0004LJ-0z
 for 20195 <at> debbugs.gnu.org; Tue, 31 Mar 2015 20:36:26 -0400
Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 t310aJCB009632
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Wed, 1 Apr 2015 00:36:19 GMT
Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])
 by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t310aJbG023349
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Wed, 1 Apr 2015 00:36:19 GMT
Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19])
 by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t310aIF7006722;
 Wed, 1 Apr 2015 00:36:18 GMT
MIME-Version: 1.0
Message-ID: <849043fc-73d9-45cc-ad33-30ccf7f7b077@default>
Date: Tue, 31 Mar 2015 17:36:16 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Filipp Gunbin <fgunbin@HIDDEN>
Subject: RE: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search'
 (`A') use prefix arg
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
 <d0f460fc-f454-4faf-946a-b652831517c1@default>
 <87h9t0oqj1.fsf@HIDDEN>
 <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default> <m2pp7ozvc6.fsf@HIDDEN>
In-Reply-To: <m2pp7ozvc6.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2  (807160) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: aserv0022.oracle.com [141.146.126.234]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

> >   If ARG is a cons with element 16, 64, or 256, corresponding to
> >    `C-u C-u', `C-u C-u C-u', or `C-u C-u C-u C-u', then use all files
> >    in the Dired buffer, where:
> >      16 includes NO directories (including `.' and `..')
> >      64 includes directories EXCEPT `.' and `..'
> >     256 includes ALL directories (including `.' and `..')
>=20
> Isn't it simpler to mark all files in a subdir (`* s') or just toggle
> everything with `t' and then invoke the command?

That's already available.  Nothing new about that.  Useful, of course.

The point is that you might currently have markings that you want to
keep for a while, and you want to perform an on-the-fly operation on
all files, without fiddling with any existing markings.

IOW, this is an additional possibility.  It takes nothing away from
what you can already do.  In particular, it does not change the behavior
of a single `C-u' (that still acts on the next 4 files, just like `C-4').

> A movement command

I don't think there has been any mention of any movement commands.
What did you have in mind?

> is ok to take argument specifying a number of files,
> because that number is related to that command's main purpose.  But here
> files are collected according to marks set in the buffer, so it's kind
> of duplication to provide the same functionality via prefix argument.

See above.  There are *many* ways to do the same thing in Dired (and
elsewhere in Emacs).  In and of itself, eliminating such "duplication"
is a silly goal (IMHO).

And it is already the case that a numeric prefix arg acts on the next
(or previous) N files, ignoring any existing marks.

To be clear:

1. I don't really care whether Emacs adds that feature (multiple `C-u'
acts on all, ignoring markings).  And that feature is not what this
enhancement request is about.

2. As one user, I use that feature quite often (with Dired+).  If
you don't find it useful, and you prefer to always mark and unmark,
that's fine by me. ;-)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 31 Mar 2015 21:54:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 17:54:39 2015
Received: from localhost ([127.0.0.1]:41519 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yd47L-0000eI-7U
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2015 17:54:39 -0400
Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56879)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <fgunbin@HIDDEN>) id 1Yd47J-0000eA-4z
 for 20195 <at> debbugs.gnu.org; Tue, 31 Mar 2015 17:54:37 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id D6788206DF
 for <20195 <at> debbugs.gnu.org>; Tue, 31 Mar 2015 17:54:31 -0400 (EDT)
Received: from frontend1 ([10.202.2.160])
 by compute3.internal (MEProxy); Tue, 31 Mar 2015 17:54:35 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc
 :content-type:date:from:in-reply-to:message-id:mime-version
 :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=z/Mqj
 wpLNlOk1QzGE3WjaDM7b+E=; b=D7y+85rQCb4+RtryaSVMMtjCfCEesaCY8UT6G
 cJY8Fnvt2yyVWbcmMP08cFt8XV1nwQU6Tqptr8ATaMkn5qOn+0bJih5p3AQypth3
 1CiE5b0HGtU66LDpvdDX+k3iF2w2a+cNMWt4nFCR5WINNlqb65Mn+3E5j/SSsFaR
 k91cfk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-sasl-enc
 :x-sasl-enc; s=smtpout; bh=z/MqjwpLNlOk1QzGE3WjaDM7b+E=; b=fd+0Y
 DvmYAMkQecW4Q6TST0dnsTArgNJlheQ67siwJ/p3b3SXJOAxDFsWGdd2V9g9x8ug
 SG3NXbEe8+RJVLc/9l3yDF0/X+dttIPEQyafPtc2uxCu3oZbOyuDA07VAddbBHVy
 Sf1g/Ooz+dOnNfHOtMGo4AlS7xdU4yLRt/nhp0=
X-Sasl-enc: AS53/UWemhgKsg7BJkvuiyoxcb3jdhNk2m4xj+QaKqyq 1427838874
Received: from fgunbin.local (unknown [178.66.179.206])
 by mail.messagingengine.com (Postfix) with ESMTPA id 3A682C00015;
 Tue, 31 Mar 2015 17:54:34 -0400 (EDT)
From: Filipp Gunbin <fgunbin@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#20195: 25.0.50;
 Let Dired commands such as `dired-do-search' (`A') use prefix arg
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
 <d0f460fc-f454-4faf-946a-b652831517c1@default>
 <87h9t0oqj1.fsf@HIDDEN>
 <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default>
Date: Wed, 01 Apr 2015 00:54:33 +0300
In-Reply-To: <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default> (Drew Adams's
 message of "Tue, 31 Mar 2015 14:22:00 -0700 (PDT)")
Message-ID: <m2pp7ozvc6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 31/03/2015 14:22 -0700, Drew Adams wrote:

>   If ARG is a cons with element 16, 64, or 256, corresponding to
>    `C-u C-u', `C-u C-u C-u', or `C-u C-u C-u C-u', then use all files
>    in the Dired buffer, where:
>      16 includes NO directories (including `.' and `..')
>      64 includes directories EXCEPT `.' and `..'
>     256 includes ALL directories (including `.' and `..')

Isn't it simpler to mark all files in a subdir (`* s') or just toggle
everything with `t' and then invoke the command?

A movement command is ok to take argument specifying a number of files,
because that number is related to that command's main purpose.  But here
files are collected according to marks set in the buffer, so it's kind
of duplication to provide the same functionality via prefix argument.

Filipp




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 31 Mar 2015 21:22:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 17:22:13 2015
Received: from localhost ([127.0.0.1]:41483 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yd3bw-0008Ir-Oe
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2015 17:22:13 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:39490)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1Yd3bu-0008Ie-Mz
 for 20195 <at> debbugs.gnu.org; Tue, 31 Mar 2015 17:22:11 -0400
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 t2VLM4Z4019656
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Tue, 31 Mar 2015 21:22:04 GMT
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t2VLM3oq024237
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Tue, 31 Mar 2015 21:22:04 GMT
Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19])
 by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t2VLM2fv016474;
 Tue, 31 Mar 2015 21:22:03 GMT
MIME-Version: 1.0
Message-ID: <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default>
Date: Tue, 31 Mar 2015 14:22:00 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: RE: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search'
 (`A') use prefix arg
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
 <d0f460fc-f454-4faf-946a-b652831517c1@default>
 <87h9t0oqj1.fsf@HIDDEN>
In-Reply-To: <87h9t0oqj1.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2  (807160) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0022.oracle.com [156.151.31.74]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

> >> There is a problem with `dired-do-query-replace-regexp' where a prefix
> >> arg means replace word-delimited matches.
> >
> > So make it so that only a negative prefix arg means delimited.
>=20
> A negative prefix arg means backward replacement.

I didn't think so. `d-d-q-r-r' uses `tags-query-replace', and I don't see
where that allows for traversing backward.

I do agree that `d-d-q-r-r' presents a bit of an anomaly, where we will
likely need to make a judgment call (& compromise), to accommodate
whatever is deemed to be the most important subset of possibilities.

FWIW -

Im my own code (dired+.el), I long ago modified
`dired-map-over-marks' and `dired-get-marked-files' to let multiple
plain `C-u' act on all files, ignoring marks, as follows:

 Optional second argument ARG specifies files to use instead of marked.
  Usually ARG comes from the command's prefix arg.
  If ARG is an integer, use the next ARG files (previous -ARG, if < 0).
  If ARG is a cons with element 16, 64, or 256, corresponding to
   `C-u C-u', `C-u C-u C-u', or `C-u C-u C-u C-u', then use all files
   in the Dired buffer, where:
     16 includes NO directories (including `.' and `..')
     64 includes directories EXCEPT `.' and `..'
    256 includes ALL directories (including `.' and `..')
  If ARG is otherwise non-nil, use the current file.

So, for example, my version of `dired-do-isearch-regexp' and other
such commands uses a prefix arg this way:

 A prefix argument ARG specifies files to use instead of those marked.
  * An integer means use the next ARG files (previous -ARG, if < 0).
  * Two or more `C-u' (e.g. `C-u C-u') means ignore any marks and use
    all files in the Dired buffer.
  * Any other prefix arg means use the current file.

(For `dired-do-*' commands that do not act on directories, all
multiples of `C-u' act the same as `C-u C-u': `.' and `..' are
ignored.)

But yes, `dired-do-query-replace-regexp' required a compromise.
This is what I ended up with, but I'm not too pleased that it is
an exception to the rule, and I'm not sure it is the best
compromise:

---

 NOTE: A prefix arg for this command acts differently than for other
 commands, so that you can use it to request word-delimited matches.

 With a prefix argument:
  * An odd number of plain `C-u': act on the marked files, but replace
    only word-delimited matches.
  * More than one plain `C-u': act on all files, ignoring whether any
    are marked.
  * Any other prefix arg: Act on the next numeric-prefix files.

 So for example:
  * `C-u C-u C-u': act on all files, replacing word-delimited matches.
  * `C-u 4': act on the next 4 files.  `C-4' means the same thing.
  * `C-u': act on the marked files, replacing word-delimited matches.

---

Anyway, the point is that I think Emacs can do a bit better wrt the
prefix arg for such commands.  I'm open to better suggestions wrt
`dired-do-query-replace-regexp'.  And I'm OK, for this bug report,
with whatever you decide.

And should you happen to decide to add multiple `C-u' behavior to the
vanilla code, and if it lets you do whatever you can do with dired+.el,
then I'll be happy to drop that code from dired+.el (except for older
Emacs versions). ;-)

And thanks for taking a look at this, whatever you decide.  Personally,
I never use a prefix arg to act on the next (or previous) N files, but
I do often use multiple `C-u C-u' to act on all files (regardless of
any markings).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 31 Mar 2015 20:39:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 31 16:39:16 2015
Received: from localhost ([127.0.0.1]:41429 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Yd2wN-0005mX-QT
	for submit <at> debbugs.gnu.org; Tue, 31 Mar 2015 16:39:16 -0400
Received: from sub3.mail.dreamhost.com ([69.163.253.7]:58062
 helo=homiemail-a75.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <juri@HIDDEN>) id 1Yd2wL-0005mL-Jp
 for 20195 <at> debbugs.gnu.org; Tue, 31 Mar 2015 16:39:14 -0400
Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id 5B9755EC07C;
 Tue, 31 Mar 2015 13:39:12 -0700 (PDT)
Received: from localhost.linkov.net (m83-180-13-68.cust.tele2.ee
 [83.180.13.68]) (Authenticated sender: jurta@HIDDEN)
 by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPA id 170B15EC072;
 Tue, 31 Mar 2015 13:39:10 -0700 (PDT)
From: Juri Linkov <juri@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#20195: 25.0.50;
 Let Dired commands such as `dired-do-search' (`A') use prefix arg
Organization: LINKOV.NET
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
 <d0f460fc-f454-4faf-946a-b652831517c1@default>
Date: Tue, 31 Mar 2015 23:33:54 +0300
In-Reply-To: <d0f460fc-f454-4faf-946a-b652831517c1@default> (Drew Adams's
 message of "Wed, 25 Mar 2015 16:08:47 -0700 (PDT)")
Message-ID: <87h9t0oqj1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

>> There is a problem with `dired-do-query-replace-regexp' where a prefix arg
>> means replace word-delimited matches.
>
> So make it so that only a negative prefix arg means delimited.

A negative prefix arg means backward replacement.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 25 Mar 2015 23:08:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 25 19:08:59 2015
Received: from localhost ([127.0.0.1]:36684 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YauPy-0004OY-MB
	for submit <at> debbugs.gnu.org; Wed, 25 Mar 2015 19:08:58 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:32549)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1YauPw-0004ON-La
 for 20195 <at> debbugs.gnu.org; Wed, 25 Mar 2015 19:08:57 -0400
Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 t2PN8nbQ023306
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Wed, 25 Mar 2015 23:08:50 GMT
Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])
 by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t2PN8nAB013432
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Wed, 25 Mar 2015 23:08:49 GMT
Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24])
 by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t2PN8neQ006035;
 Wed, 25 Mar 2015 23:08:49 GMT
MIME-Version: 1.0
Message-ID: <d0f460fc-f454-4faf-946a-b652831517c1@default>
Date: Wed, 25 Mar 2015 16:08:47 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: RE: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search'
 (`A') use prefix arg
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
 <87619oiw5f.fsf@HIDDEN>
In-Reply-To: <87619oiw5f.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2  (807160) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: aserv0021.oracle.com [141.146.126.233]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

> There is a problem with `dired-do-query-replace-regexp' where a prefix ar=
g
> means replace word-delimited matches.

So make it so that only a negative prefix arg means delimited.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at 20195 <at> debbugs.gnu.org:


Received: (at 20195) by debbugs.gnu.org; 25 Mar 2015 21:56:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 25 17:56:22 2015
Received: from localhost ([127.0.0.1]:36675 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YatHi-0002ZY-Ac
	for submit <at> debbugs.gnu.org; Wed, 25 Mar 2015 17:56:22 -0400
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 <juri@HIDDEN>) id 1YatHa-0002ZE-L1
 for 20195 <at> debbugs.gnu.org; Wed, 25 Mar 2015 17:56:15 -0400
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)
Received: from localhost.linkov.net (85.253.154.202.cable.starman.ee
 [85.253.154.202]) (Authenticated sender: jurta@HIDDEN)
 by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id 1F722458079;
 Wed, 25 Mar 2015 14:56:11 -0700 (PDT)
From: Juri Linkov <juri@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#20195: 25.0.50;
 Let Dired commands such as `dired-do-search' (`A') use prefix arg
Organization: LINKOV.NET
References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
Date: Wed, 25 Mar 2015 23:50:52 +0200
In-Reply-To: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default> (Drew Adams's
 message of "Tue, 24 Mar 2015 20:56:26 -0700 (PDT)")
Message-ID: <87619oiw5f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20195
Cc: 20195 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Mar 2015 03:56:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 24 23:56:44 2015
Received: from localhost ([127.0.0.1]:35447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YacQu-0005WW-F1
	for submit <at> debbugs.gnu.org; Tue, 24 Mar 2015 23:56:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56181)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1YacQr-0005W7-U1
 for submit <at> debbugs.gnu.org; Tue, 24 Mar 2015 23:56:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1YacQm-0003iB-1M
 for submit <at> debbugs.gnu.org; Tue, 24 Mar 2015 23:56:36 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:43287)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1YacQl-0003i7-Ul
 for submit <at> debbugs.gnu.org; Tue, 24 Mar 2015 23:56:35 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57902)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1YacQl-0003cT-0l
 for bug-gnu-emacs@HIDDEN; Tue, 24 Mar 2015 23:56:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1YacQg-0003ek-6Z
 for bug-gnu-emacs@HIDDEN; Tue, 24 Mar 2015 23:56:34 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:24154)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1YacQf-0003eU-U2
 for bug-gnu-emacs@HIDDEN; Tue, 24 Mar 2015 23:56:30 -0400
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 t2P3uSKe021404
 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Wed, 25 Mar 2015 03:56:29 GMT
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t2P3uS8v003835
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL)
 for <bug-gnu-emacs@HIDDEN>; Wed, 25 Mar 2015 03:56:28 GMT
Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20])
 by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t2P3uSr9021446
 for <bug-gnu-emacs@HIDDEN>; Wed, 25 Mar 2015 03:56:28 GMT
MIME-Version: 1.0
Message-ID: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default>
Date: Tue, 24 Mar 2015 20:56:26 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use
 prefix arg
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2  (807160) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0022.oracle.com [156.151.31.74]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


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) ; <=3D=3D=3D 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@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=3Dyes,glyphs CPPFLAGS=3D-DGLYPH_DEBUG=3D1'




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#20195; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.