From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Easy way to rename files sequentially? Date: Mon, 26 Nov 2007 23:23:29 +0100 Message-ID: <2BBE8168-E905-4D7E-B835-BBAEBAADDFD0@Web.DE> References: <87ejeexgfy.fsf@celephais.home.net> <04fa5efd-411a-46ce-8bea-87c4a9559eb4@e10g2000prf.googlegroups.com> <87wss6q785.fsf@newsguy.com> <58B8514B-CE8D-49AE-B512-E347ED392511@Web.DE> <87lk8lriju.fsf@newsguy.com> <87r6icx4es.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196115861 17290 80.91.229.12 (26 Nov 2007 22:24:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 22:24:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: reader@newsguy.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 26 23:24:28 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IwmNP-0001kR-H4 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 23:24:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwmNA-0002Yi-A0 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 17:24:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwmMa-0002RJ-En for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 17:23:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwmMX-0002QU-HX for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 17:23:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwmMX-0002QM-4g for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 17:23:33 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwmMW-0005WL-NS for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 17:23:32 -0500 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id BE4A0B5B3F4D; Mon, 26 Nov 2007 23:23:31 +0100 (CET) Original-Received: from [195.4.204.195] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1IwmMV-0003Mh-00; Mon, 26 Nov 2007 23:23:31 +0100 In-Reply-To: <87r6icx4es.fsf@newsguy.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/uk6aJDR/QGMpwYweD2UX/9c95tVo8P+X14I1s P1bpTyCrJTvZNj8QDYpcuz/zgdH1ZgTGZK0JSI7nu7x1/aczff wZrSmg8nrjx/B1KwrCWg== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49564 Archived-At: Am 26.11.2007 um 19:11 schrieb reader: > But Peter, that is what my questions are about... how to accomplish > sequential numbering. So what is there at your citation that informs > me about that? To cite myself: (\# = number of already completed replacements, i.e. starting with 0). > > My input in this thread started with a question directed at Eli about > the use of % R (from dired of course) That's the key binding in dired-mode which starts the renaming (moving) action/process. > > What you've shown, at least in part does not apply to dired mode does > it? At least some of the operators you keep referring to are not > available in dired, or so it appears at this end. I thought the new extension (since GNU Emacs 22) would work in dired- mode when I started to reply (and I did not see any other method than that described, so I started before making the test). Then I checked before I sent my reply and had to find that neither \, nor \# work. Wdired seems to be a working option that I did not check yet. And that I did not know of until now. At least I did not remember what I've once or twice read but never had to use yet ... Besides I mentioned, as another option, to use a shell or whatever script when the simple approach with dired does not work. To produce that script the given code might be helpful to produce the target name. Anyway, it's not that bad to look up a given reference. It can, sometimes (?), explain more than I can. -- Greetings Pete "Specifications are for the weak and timid!"