From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#6823: 24.0.50; Wdired or Dired enhancement Date: Mon, 09 Aug 2010 16:48:26 +0200 Organization: ThierryVolpiatto Message-ID: <87lj8fj0zp.fsf@tux.homenetwork> References: <87pqxs5o7s.fsf@tux.homenetwork> <2F0E9BE0383248998DD1960E32677585@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281366524 9689 80.91.229.12 (9 Aug 2010 15:08:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 15:08:44 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 09 17:08:39 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 1OiTxu-0008RU-4B for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 17:08:38 +0200 Original-Received: from localhost ([127.0.0.1]:34818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiTxt-0002E7-EI for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 11:08:37 -0400 Original-Received: from [140.186.70.92] (port=56589 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiTxj-0002Cr-Jb for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 11:08:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiTxi-0000FI-18 for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 11:08:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36101) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiTxh-0000FC-VV for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 11:08:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OiTgs-0007X4-Eg; Mon, 09 Aug 2010 10:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Aug 2010 14:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6823 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.128136542928932 (code B ref -1); Mon, 09 Aug 2010 14:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Aug 2010 14:50:29 +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 1OiTgL-0007Wb-79 for submit@debbugs.gnu.org; Mon, 09 Aug 2010 10:50:29 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiTgJ-0007WW-05 for submit@debbugs.gnu.org; Mon, 09 Aug 2010 10:50:27 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:58275) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OiTgy-0006Po-MX for submit@debbugs.gnu.org; Mon, 09 Aug 2010 10:51:08 -0400 Original-Received: from [140.186.70.92] (port=54130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiTgu-0006sp-9b for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 10:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiTgs-0004su-Uf for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 10:51:04 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:41474) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiTgs-0004sg-QW for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 10:51:02 -0400 Original-Received: by wyg36 with SMTP id 36so11262943wyg.0 for ; Mon, 09 Aug 2010 07:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=kEm3kPwAUOIk/z1k60wzIg0LjlAh/z1XR1j0qYVb7ic=; b=NzGBgZwjmzxAo2Bd4f75xdpxJ+y4GVHCd5bTiMEGnPTjS7m/GL36UMb5HpcI132/RO 3zWp7BY8GtF8kezQ8xkq8UmN5solZJ+Z6++nM3e5IAe36R9aiuiTVx74jXPXbcWatL1e bz5KePGmC2YK0gLG3yno/NySOZv5PCuliCo4c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=J9lks4YX5eZxAq6PTrhXDOp31lYGiMCzTDCNhxznZpM/8VSQkowqA3VZMrVDKUkr8O Avo6TveCWoNLURzgWzUnqZ0Sx/HyqAAmHV0I8FKhNg/A9V2tRDCrvRdEq1RSmyieIk8v ikSg4fK6xAHHhH0xTR41mAKL+U9olz+tjZnB4= Original-Received: by 10.227.144.2 with SMTP id x2mr13951053wbu.76.1281365461272; Mon, 09 Aug 2010 07:51:01 -0700 (PDT) Original-Received: from tux.homenetwork (173.77.197-77.rev.gaoland.net [77.197.77.173]) by mx.google.com with ESMTPS id l55sm2612293weq.17.2010.08.09.07.50.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Aug 2010 07:51:00 -0700 (PDT) In-Reply-To: <2F0E9BE0383248998DD1960E32677585@us.oracle.com> (Drew Adams's message of "Mon, 9 Aug 2010 07:16:01 -0700") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Mon, 09 Aug 2010 10:51: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:39356 Archived-At: "Drew Adams" writes: >> > 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. >> >> We have have two tools to achieve this, wdired-change-to-wdired-mode, >> and query-replace-regexp used with \, and \# in the >> replacement regexp. > > That's exactly what I meant by "use Wdired and perform query-replace with some > fancy replacement expression." Ah! yes sorry. > I know that a user can do it. What I suggest is that we also "offer something > simpler for the common task of renaming a sequence of files." > > A Windows user need not be familiar with Lisp sexps (and especially arcane > incantations using `\,' and \#). It's great to have that capability, but we > should also offer something simpler for the common, simple case. Maybe have a special command for wdired that start wdired-mode but provide a special regexp template for this case to give to query-replace. What is good with wdired+query-replace is we can undo if regexp is wrong until we find a good regexp. >> You can use also this function:(You may have to run it two >> times in some rare cases) >> >> (defun serial-rename (dir ext name start)... > > I haven't tried it, but from the doc string, it sounds like the kind of thing I > had in mind. > > The doc for Dired should mention such a command (which should be bound to a > key), and it should mention that you can do fancier, more flexible replacement > using query-replace with `\,', `\#', etc. > This command (serial-rename) is not part of emacs, it's just a little command of my config i use sometime to rename quickly my photos. However i prefer wdired/query-replace-regexp. -- Thierry Volpiatto Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997