aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-03 15:02:43 +0200
committerLars Magne Ingebrigtsen2011-07-03 15:02:43 +0200
commita9ab721e7fdbedd15e520f74c9c90154a8c36669 (patch)
tree6f286ed15fac8d6e5e269a75dce1de63b47948bd /src
parent79414ae4dfe70ef065a4afbcbfbcfbdec359fd8c (diff)
downloademacs-a9ab721e7fdbedd15e520f74c9c90154a8c36669.tar.gz
emacs-a9ab721e7fdbedd15e520f74c9c90154a8c36669.zip
Clarify what the "-" and "0" flags mean in the `format' function
(bug#6659).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/editfns.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d77a246a50a..ad5b9c41c30 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * editfns.c (Fformat): Clarify the - and 0 flags (bug#6659).
4
12011-07-03 Paul Eggert <eggert@cs.ucla.edu> 52011-07-03 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 * xsettings.c (SYSTEM_FONT): Define only when used. 7 * xsettings.c (SYSTEM_FONT): Define only when used.
diff --git a/src/editfns.c b/src/editfns.c
index 5328b714b0f..c470c9be985 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3557,7 +3557,8 @@ The width specifier supplies a lower limit for the length of the
3557printed representation. The padding, if any, normally goes on the 3557printed representation. The padding, if any, normally goes on the
3558left, but it goes on the right if the - flag is present. The padding 3558left, but it goes on the right if the - flag is present. The padding
3559character is normally a space, but it is 0 if the 0 flag is present. 3559character is normally a space, but it is 0 if the 0 flag is present.
3560The - flag takes precedence over the 0 flag. 3560The 0 flag is ignored if the - flag is present, or the format sequence
3561is something other than %d, %e, %f, and %g.
3561 3562
3562For %e, %f, and %g sequences, the number after the "." in the 3563For %e, %f, and %g sequences, the number after the "." in the
3563precision specifier says how many decimal places to show; if zero, the 3564precision specifier says how many decimal places to show; if zero, the