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#6823: 24.0.50; Wdired or Dired enhancement Date: Sat, 7 Aug 2010 11:37:43 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281296033 21233 80.91.229.12 (8 Aug 2010 19:33:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2010 19:33:53 +0000 (UTC) To: 6823@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 08 21:33:50 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiBcz-0006RA-TA for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Aug 2010 21:33:50 +0200 Original-Received: from localhost ([127.0.0.1]:58934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiBan-0004DF-BK for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Aug 2010 15:31:33 -0400 Original-Received: from [140.186.70.92] (port=60079 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9pL-0005V9-8e for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 13:38:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oi9pJ-0002Th-Qv for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 13:38:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39624) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi9pJ-0002Td-PX for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 13:38:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oi9Sg-0002ns-TN; Sun, 08 Aug 2010 13:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Aug 2010 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6823 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128128768410750 (code B ref -1); Sun, 08 Aug 2010 17:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Aug 2010 17:14:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi9SN-0002nK-9y for submit@debbugs.gnu.org; Sun, 08 Aug 2010 13:14:43 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi9SL-0002nB-GI for submit@debbugs.gnu.org; Sun, 08 Aug 2010 13:14:42 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:53543) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oi9T2-0000gq-Kq for submit@debbugs.gnu.org; Sun, 08 Aug 2010 13:15:24 -0400 Original-Received: from [140.186.70.92] (port=51246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9Ss-0002FJ-Sv for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 13:15:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhoHk-0002x8-Bn for bug-gnu-emacs@gnu.org; Sat, 07 Aug 2010 14:38:21 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:23060) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhoHk-0002uN-1j for bug-gnu-emacs@gnu.org; Sat, 07 Aug 2010 14:38:20 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o77IcH2s029650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 7 Aug 2010 18:38:18 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o77IcG15012338 for ; Sat, 7 Aug 2010 18:38:16 GMT Original-Received: from abhmt001.oracle.com by acsmt355.oracle.com with ESMTP id 495230911281206260; Sat, 07 Aug 2010 11:37:40 -0700 Original-Received: from dradamslap1 (/10.159.221.167) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 07 Aug 2010 11:37:40 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acs2X58BjaTzFeCvTWOUGELA7om2IQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 08 Aug 2010 13:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39307 Archived-At: Emacs sorely needs one or more commands that let you rename the marked files as a sequence (following a pattern). See MS Windows for an example (but we could do better): 1. You sort the file list the way you want, to put the files you want to act on in the right order. Especially with libraries such as Francis Wright's `dired-sort-menu.el', you can sort Dired in many different ways. 2. You mark the files you want to rename. (In Windows you select them.) 3. You invoke a rename command, and enter a pattern for the new names. The pattern includes an optional starting index, which is a whole number. In Windows you put the index in parens, which are included in the file names. Example: `new name (100)'. The marked files are named `new name (100)', `new name (101)'... Obviously, in Emacs we could provide for better patterns and substitutions than this. But AFAIK today we offer nothing like this. If you have 1000 family photo files you want to rename to something like `2010 Summer Vacation (1000)', `2010 Summer Vacation (1001)' etc. (or even just `1000', `1001'...), then AFAIK the best you can do now is to use Wdired and perform query-replace with some fancy replacement expression. We should offer something simpler for the common task of renaming a sequence of files. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-08-02 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'