all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (format "%+02d" -1)  does not return "-01" !
@ 2009-11-10  1:46 Vincent Belaïche
  2009-11-10 10:49 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Belaïche @ 2009-11-10  1:46 UTC (permalink / raw
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]


Is that a bug ?

The docstring of format says that flag `+' is precedent over flag ` ', but it does not say that it cancels the effect of `0' filler, nor that of width specification.

    Vincent.
 		 	   		  
_________________________________________________________________
Nouveau ! Tout Windows débarque dans votre téléphone. Voir les Windows phone
http://clk.atdmt.com/FRM/go/175819071/direct/01/

[-- Attachment #2: Type: text/html, Size: 576 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (format "%+02d" -1)  does not return "-01" !
  2009-11-10  1:46 (format "%+02d" -1) does not return "-01" ! Vincent Belaïche
@ 2009-11-10 10:49 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2009-11-10 10:49 UTC (permalink / raw
  To: Vincent Belaïche; +Cc: emacs-devel

Vincent Belaïche <vincent.b.1@hotmail.fr> writes:

> Is that a bug ?
>
> The docstring of format says that flag `+' is precedent over flag ` ', but it does not say that it cancels the effect of `0' filler, nor that of width specification.

The width includes the sign, so there is nothing to fill.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-10 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10  1:46 (format "%+02d" -1) does not return "-01" ! Vincent Belaïche
2009-11-10 10:49 ` Andreas Schwab

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.