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: Chong Yidong
Subject: Re: doc string of `format' - FLAGS unexplained
Date: Tue, 26 Feb 2008 11:33:39 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> Chong Yidong <address@hidden> writes:
>
>> Andreas Schwab <address@hidden> writes:
>>
>>> Chong Yidong <address@hidden> writes:
>>>
>>>> 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.
>>>
>>> This is wrong.  '-' and '0' are real flags that can be freely mixed with
>>> other flags, eg. "%0#10d" is valid and the same as "%#010d".  They are
>>> never considered part of the width.
>>
>> The question is, do we regard this as an undocumented side-effect of
>> the implementation?
>
> It works the same as in C, which is widely understood.  Gratuitous
> differences only confuse people.

True enough.  I've checked in a corrected docstring that treats - and
0 as flags.




reply via email to

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