diff options
| author | Eli Zaretskii | 2022-12-16 20:46:00 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-12-16 20:46:00 +0200 |
| commit | b9227c502d7f9023ef5fc44f67144a38d23339e4 (patch) | |
| tree | b7c13936017c6edc561a3ab44140a45f1ca7b057 /src | |
| parent | 65b0040f9fc7a0d02045e8f7581b133e1001e65a (diff) | |
| download | emacs-b9227c502d7f9023ef5fc44f67144a38d23339e4.tar.gz emacs-b9227c502d7f9023ef5fc44f67144a38d23339e4.zip | |
; Improve wording of 'format' doc string
* src/editfns.c (Fformat): Use "produce" instead of "print".
(Bug#60125)
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/editfns.c b/src/editfns.c index b364f441b53..8d56ef21d90 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3279,18 +3279,18 @@ The other arguments are substituted into it to make the result, a string. | |||
| 3279 | The format control string may contain %-sequences meaning to substitute | 3279 | The format control string may contain %-sequences meaning to substitute |
| 3280 | the next available argument, or the argument explicitly specified: | 3280 | the next available argument, or the argument explicitly specified: |
| 3281 | 3281 | ||
| 3282 | %s means print a string argument. Actually, prints any object, with `princ'. | 3282 | %s means produce a string argument. Actually, produces any object with `princ'. |
| 3283 | %d means print as signed number in decimal. | 3283 | %d means produce as signed number in decimal. |
| 3284 | %o means print a number in octal. | 3284 | %o means produce a number in octal. |
| 3285 | %x means print a number in hex. | 3285 | %x means produce a number in hex. |
| 3286 | %X is like %x, but uses upper case. | 3286 | %X is like %x, but uses upper case. |
| 3287 | %e means print a number in exponential notation. | 3287 | %e means produce a number in exponential notation. |
| 3288 | %f means print a number in decimal-point notation. | 3288 | %f means produce a number in decimal-point notation. |
| 3289 | %g means print a number in exponential notation if the exponent would be | 3289 | %g means produce a number in exponential notation if the exponent would be |
| 3290 | less than -4 or greater than or equal to the precision (default: 6); | 3290 | less than -4 or greater than or equal to the precision (default: 6); |
| 3291 | otherwise it prints in decimal-point notation. | 3291 | otherwise it produces in decimal-point notation. |
| 3292 | %c means print a number as a single character. | 3292 | %c means produce a number as a single character. |
| 3293 | %S means print any object as an s-expression (using `prin1'). | 3293 | %S means produce any object as an s-expression (using `prin1'). |
| 3294 | 3294 | ||
| 3295 | The argument used for %d, %o, %x, %e, %f, %g or %c must be a number. | 3295 | The argument used for %d, %o, %x, %e, %f, %g or %c must be a number. |
| 3296 | %o, %x, and %X treat arguments as unsigned if `binary-as-unsigned' is t | 3296 | %o, %x, and %X treat arguments as unsigned if `binary-as-unsigned' is t |
| @@ -3325,7 +3325,7 @@ included even if the precision is zero, and also forces trailing | |||
| 3325 | zeros after the decimal point to be left in place. | 3325 | zeros after the decimal point to be left in place. |
| 3326 | 3326 | ||
| 3327 | The width specifier supplies a lower limit for the length of the | 3327 | The width specifier supplies a lower limit for the length of the |
| 3328 | printed representation. The padding, if any, normally goes on the | 3328 | produced representation. The padding, if any, normally goes on the |
| 3329 | left, but it goes on the right if the - flag is present. The padding | 3329 | left, but it goes on the right if the - flag is present. The padding |
| 3330 | character is normally a space, but it is 0 if the 0 flag is present. | 3330 | character is normally a space, but it is 0 if the 0 flag is present. |
| 3331 | The 0 flag is ignored if the - flag is present, or the format sequence | 3331 | The 0 flag is ignored if the - flag is present, or the format sequence |
| @@ -3334,7 +3334,7 @@ is something other than %d, %o, %x, %e, %f, and %g. | |||
| 3334 | For %e and %f sequences, the number after the "." in the precision | 3334 | For %e and %f sequences, the number after the "." in the precision |
| 3335 | specifier says how many decimal places to show; if zero, the decimal | 3335 | specifier says how many decimal places to show; if zero, the decimal |
| 3336 | point itself is omitted. For %g, the precision specifies how many | 3336 | point itself is omitted. For %g, the precision specifies how many |
| 3337 | significant digits to print; zero or omitted are treated as 1. | 3337 | significant digits to produce; zero or omitted are treated as 1. |
| 3338 | For %s and %S, the precision specifier truncates the string to the | 3338 | For %s and %S, the precision specifier truncates the string to the |
| 3339 | given width. | 3339 | given width. |
| 3340 | 3340 | ||