unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: reader@newsguy.com
To: help-gnu-emacs@gnu.org
Subject: Re: Easy way to rename files sequentially?
Date: Sun, 25 Nov 2007 17:50:45 -0600	[thread overview]
Message-ID: <87lk8lriju.fsf@newsguy.com> (raw)
In-Reply-To: 58B8514B-CE8D-49AE-B512-E347ED392511@Web.DE

Peter Dyballa <Peter_Dyballa@Web.DE> 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   % <flags> <width> <precision> character
19 where flags is [-+ #0]+, width is [0-9]+, and precision is .[0-9]+

  reply	other threads:[~2007-11-25 23:50 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 19:39 Easy way to rename files sequentially? cothrige
2007-11-25 20:35 ` Sven Bretfeld
2007-11-25 21:12 ` Eli Zaretskii
2007-11-25 21:46   ` reader
2007-11-26  3:39     ` Eli Zaretskii
2007-11-26  7:33       ` reader
2007-11-26 12:49         ` David Hansen
2007-11-26 17:56           ` reader
2007-11-26 18:26             ` David Hansen
2007-11-26 20:40               ` Eli Zaretskii
     [not found]               ` <mailman.4145.1196109649.18990.help-gnu-emacs@gnu.org>
2007-11-26 21:00                 ` David Kastrup
2007-11-26 20:08             ` Thierry Volpiatto
2007-11-27  7:07               ` Sebastian Tennant
2007-11-27  7:18                 ` Thierry Volpiatto
2007-11-27 15:14                 ` Thierry Volpiatto
2007-11-27 15:20                   ` Sebastian Tennant
2007-11-26 20:03         ` Eli Zaretskii
2007-11-27 19:31           ` reader
     [not found]           ` <mailman.4195.1196192427.18990.help-gnu-emacs@gnu.org>
2007-11-27 20:12             ` Joel J. Adamson
2007-11-27 21:35               ` Thierry Volpiatto
2007-11-27 22:00                 ` Joel J. Adamson
     [not found]                 ` <mailman.4203.1196200844.18990.help-gnu-emacs@gnu.org>
2007-11-27 23:40                   ` Johan Bockgård
2007-11-27 23:43                   ` David Kastrup
2007-11-28 15:27                     ` Joel J. Adamson
     [not found]         ` <mailman.4117.1196081659.18990.help-gnu-emacs@gnu.org>
2007-11-28  4:17           ` cothrige
2007-11-28  6:43             ` Thierry Volpiatto
2007-11-28 14:27             ` Ted Zlatanov
2007-11-28 15:35             ` Joel J. Adamson
2007-11-28 17:18               ` cothrige
2007-11-28 21:20                 ` cothrige
     [not found]       ` <mailman.4107.1196062436.18990.help-gnu-emacs@gnu.org>
2007-11-28  3:48         ` cothrige
2007-11-25 21:19 ` Xah Lee
2007-11-25 22:40   ` reader
2007-11-25 23:16     ` Peter Dyballa
2007-11-25 23:50       ` reader [this message]
2007-11-26  9:20         ` Peter Dyballa
2007-11-26 18:11           ` reader
2007-11-26 22:23             ` Peter Dyballa
2007-11-27 19:28               ` reader
2007-11-25 21:51 ` Peter Dyballa
2007-11-25 23:34   ` reader
2007-11-25 23:11 ` Bastien
     [not found] ` <mailman.4087.1196027477.18990.help-gnu-emacs@gnu.org>
2007-11-28  3:36   ` cothrige
     [not found] ` <mailman.4081.1196022933.18990.help-gnu-emacs@gnu.org>
2007-11-29  3:29   ` cothrige

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lk8lriju.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).