diff options
| author | Lars Magne Ingebrigtsen | 2011-07-03 15:02:43 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-03 15:02:43 +0200 |
| commit | a9ab721e7fdbedd15e520f74c9c90154a8c36669 (patch) | |
| tree | 6f286ed15fac8d6e5e269a75dce1de63b47948bd /src | |
| parent | 79414ae4dfe70ef065a4afbcbfbcfbdec359fd8c (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | src/editfns.c | 3 |
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 @@ | |||
| 1 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * editfns.c (Fformat): Clarify the - and 0 flags (bug#6659). | ||
| 4 | |||
| 1 | 2011-07-03 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2011-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 | |||
| 3557 | printed representation. The padding, if any, normally goes on the | 3557 | printed representation. The padding, if any, normally goes on the |
| 3558 | left, but it goes on the right if the - flag is present. The padding | 3558 | left, but it goes on the right if the - flag is present. The padding |
| 3559 | character is normally a space, but it is 0 if the 0 flag is present. | 3559 | character is normally a space, but it is 0 if the 0 flag is present. |
| 3560 | The - flag takes precedence over the 0 flag. | 3560 | The 0 flag is ignored if the - flag is present, or the format sequence |
| 3561 | is something other than %d, %e, %f, and %g. | ||
| 3561 | 3562 | ||
| 3562 | For %e, %f, and %g sequences, the number after the "." in the | 3563 | For %e, %f, and %g sequences, the number after the "." in the |
| 3563 | precision specifier says how many decimal places to show; if zero, the | 3564 | precision specifier says how many decimal places to show; if zero, the |