emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc string of `format' - FLAGS unexplained


From: Lennart Borgman (gmail)
Subject: Re: doc string of `format' - FLAGS unexplained
Date: Tue, 26 Feb 2008 01:05:53 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Chong Yidong wrote:
I'd like to propose the following change to the doc string of
`format'.

In particular, the statement "flags is [-+ #0]+" is misleading; it
should be [+ #]+, since the - and 0 characters are actually used to
identify the width specifier instead.

Any thoughts?

How nice with a readable description of those formats. But

!   %<flags><width><precision>character
! ! where flags is [+ #]+, width is [0-9]+, and precision is .[0-9]+

  ! where <flags> is [+ #0]+, width is [1-9][0-9]*, and precision is
  .[0-9]+

is perhaps more accurate. `0' is a flag that gives leading 0:s, isn't it?

And perhaps is it more logical to write <flags> then just flags?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]