From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20195: 25.0.50; Let Dired commands such as `dired-do-search' (`A') use prefix arg Date: Tue, 31 Mar 2015 17:36:16 -0700 (PDT) Message-ID: <849043fc-73d9-45cc-ad33-30ccf7f7b077@default> References: <3126891c-8c4d-4d6f-aa97-7c2e5b4ed2d0@default> <87619oiw5f.fsf@mail.linkov.net> <87h9t0oqj1.fsf@mail.linkov.net> <3f9ce496-3dc3-4ca8-adbb-0e47fa998aaa@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1427848644 17063 80.91.229.3 (1 Apr 2015 00:37:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 00:37:24 +0000 (UTC) Cc: 20195@debbugs.gnu.org, Juri Linkov To: Filipp Gunbin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 02:37:11 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 1Yd6ed-0004LZ-2N for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 02:37:11 +0200 Original-Received: from localhost ([::1]:41082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd6eb-0003gY-PL for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 20:37:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd6eY-0003gF-4X for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 20:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd6eU-0003Ij-UO for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 20:37:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd6eU-0003Id-QM for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 20:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yd6eU-0004MQ-Ec for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2015 20:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2015 00:37: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.142784858816715 (code B ref 20195); Wed, 01 Apr 2015 00:37:02 +0000 Original-Received: (at 20195) by debbugs.gnu.org; 1 Apr 2015 00:36:28 +0000 Original-Received: from localhost ([127.0.0.1]:41537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd6dw-0004LX-Al for submit@debbugs.gnu.org; Tue, 31 Mar 2015 20:36:28 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:42383) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd6du-0004LJ-0z for 20195@debbugs.gnu.org; Tue, 31 Mar 2015 20:36:26 -0400 Original-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 Original-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 Original-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 In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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:101096 Archived-At: > > 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. ;-)