aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-12-16 20:46:00 +0200
committerEli Zaretskii2022-12-16 20:46:00 +0200
commitb9227c502d7f9023ef5fc44f67144a38d23339e4 (patch)
treeb7c13936017c6edc561a3ab44140a45f1ca7b057 /src
parent65b0040f9fc7a0d02045e8f7581b133e1001e65a (diff)
downloademacs-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.c24
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.
3279The format control string may contain %-sequences meaning to substitute 3279The format control string may contain %-sequences meaning to substitute
3280the next available argument, or the argument explicitly specified: 3280the 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
3295The argument used for %d, %o, %x, %e, %f, %g or %c must be a number. 3295The 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
3325zeros after the decimal point to be left in place. 3325zeros after the decimal point to be left in place.
3326 3326
3327The width specifier supplies a lower limit for the length of the 3327The width specifier supplies a lower limit for the length of the
3328printed representation. The padding, if any, normally goes on the 3328produced representation. The padding, if any, normally goes on the
3329left, but it goes on the right if the - flag is present. The padding 3329left, but it goes on the right if the - flag is present. The padding
3330character is normally a space, but it is 0 if the 0 flag is present. 3330character is normally a space, but it is 0 if the 0 flag is present.
3331The 0 flag is ignored if the - flag is present, or the format sequence 3331The 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.
3334For %e and %f sequences, the number after the "." in the precision 3334For %e and %f sequences, the number after the "." in the precision
3335specifier says how many decimal places to show; if zero, the decimal 3335specifier says how many decimal places to show; if zero, the decimal
3336point itself is omitted. For %g, the precision specifies how many 3336point itself is omitted. For %g, the precision specifies how many
3337significant digits to print; zero or omitted are treated as 1. 3337significant digits to produce; zero or omitted are treated as 1.
3338For %s and %S, the precision specifier truncates the string to the 3338For %s and %S, the precision specifier truncates the string to the
3339given width. 3339given width.
3340 3340