From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: reader@newsguy.com Newsgroups: gmane.emacs.help Subject: Re: Easy way to rename files sequentially? Date: Sun, 25 Nov 2007 17:50:45 -0600 Organization: Still searching... Message-ID: <87lk8lriju.fsf@newsguy.com> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196034697 919 80.91.229.12 (25 Nov 2007 23:51:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2007 23:51:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 26 00:51:44 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 1IwRGJ-0003xH-PI for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 00:51:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwRG4-0007Sm-JG for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2007 18:51:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwRFq-0007SX-30 for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 18:51:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwRFo-0007SL-SM for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 18:51:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwRFo-0007SI-Mz for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 18:51:12 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IwRFo-0001tx-GL for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 18:51:12 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IwRFc-0002Vu-4s for help-gnu-emacs@gnu.org; Sun, 25 Nov 2007 23:51:00 +0000 Original-Received: from adsl-76-224-105-8.dsl.emhril.sbcglobal.net ([76.224.105.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Nov 2007 23:51:00 +0000 Original-Received: from reader by adsl-76-224-105-8.dsl.emhril.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Nov 2007 23:51:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-76-224-105-8.dsl.emhril.sbcglobal.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:9s+LujIHwZcQbXr7IUaXyP52epo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:49531 Archived-At: Peter Dyballa writes: > Am 25.11.2007 um 23:40 schrieb reader: > >> I guess what is throwning me is the use of format strings that are not >> explained to generate the numbers. > > What more information do you need? C-h f format RET? Is it this? > I guess that might be helpful except I still am so blind I'm not seeing how numbers are incremented. I've posted the content with line numbers. Can you show me the relevant lines? 1 format is a built-in function in `C source code'. 2 (format STRING &rest OBJECTS) 3 Format a string out of a format-string and arguments. 4 The first argument is a format control string. 5 The other arguments are substituted into it to make the result, a string. 6 It may contain %-sequences meaning to substitute the next argument. 7 %s means print a string argument. Actually, prints any object, with `princ'. 8 %d means print as number in decimal (%o octal, %x hex). 9 %X is like %x, but uses upper case. 10 %e means print a number in exponential notation. 11 %f means print a number in decimal-point notation. 12 %g means print a number in exponential notation or decimal-point notation, whichever uses fewer characters. 13 %c means print a number as a single character. 14 %S means print any object as an s-expression (using `prin1'). 15 The argument used for %d, %o, %x, %e, %f, %g or %c must be a number. 16 Use %% to put a single % into the output. 17 The basic structure of a %-sequence is 18 % character 19 where flags is [-+ #0]+, width is [0-9]+, and precision is .[0-9]+