[Top][All Lists]
[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: |
Mon, 25 Feb 2008 19:23:48 -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:
>
>> 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? Treating '-' and '0' as part of the width
specifier is conceptually simpler, and the elisp manual documents
these as such. If we treat '0' as a real flag, then maybe the
description in the elisp manual should be revised.