diff options
| author | Paul Eggert | 2017-03-19 12:29:06 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-03-19 12:29:06 -0700 |
| commit | e6fd84d2d5ca256797ff210c915a2fa773d4d742 (patch) | |
| tree | ba2ba64a65705a3259a0ecb66098f834e741fb4b /src | |
| parent | d86bcedd880b3cb6383641082d406075aa6e70e2 (diff) | |
| parent | ab0a60a1b334fafc7d805eb44e6069ea314ad486 (diff) | |
| download | emacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.tar.gz emacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.zip | |
Merge from origin/emacs-25
ab0a60a ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate...
7e02a47 Index byte-compile-debug
7c1e598 Document `byte-compile-debug' in the ELisp manual
4d81eb4 Document variable `byte-compile-debug'
72ef710 Fix call to debugger on assertion failure
ae8264c Call modification hooks in org-src fontify buffers
b3139da ; Fix last change in doc/lispref/strings.texi
c331f39 Improve documentation of 'format' conversions
9f52f67 Remove stale functions from ert manual
c416b14 Fix a typo in Eshell manual
06695a0 ; Fix a typo in ediff-merg.el
954e9e9 Improve documentation of hooks related to saving buffers
9fcab85 Improve documentation of auto-save-visited-file-name
2236c53 fix typo in mailcap-mime-extensions
85a3e4e Fix typos in flymake.el
a1ef10e More NEWS checking for admin.el's set-version
# Conflicts:
# lisp/emacs-lisp/bytecomp.el
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/editfns.c b/src/editfns.c index 612893c377b..65c0c721d11 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3865,12 +3865,14 @@ The format control string may contain %-sequences meaning to substitute | |||
| 3865 | the next available argument: | 3865 | the next available argument: |
| 3866 | 3866 | ||
| 3867 | %s means print a string argument. Actually, prints any object, with `princ'. | 3867 | %s means print a string argument. Actually, prints any object, with `princ'. |
| 3868 | %d means print as number in decimal (%o octal, %x hex). | 3868 | %d means print as signed number in decimal. |
| 3869 | %o means print as unsigned number in octal, %x as unsigned number in hex. | ||
| 3869 | %X is like %x, but uses upper case. | 3870 | %X is like %x, but uses upper case. |
| 3870 | %e means print a number in exponential notation. | 3871 | %e means print a number in exponential notation. |
| 3871 | %f means print a number in decimal-point notation. | 3872 | %f means print a number in decimal-point notation. |
| 3872 | %g means print a number in exponential notation | 3873 | %g means print a number in exponential notation if the exponent would be |
| 3873 | or decimal-point notation, whichever uses fewer characters. | 3874 | less than -4 or greater than or equal to the precision (default: 6); |
| 3875 | otherwise it prints in decimal-point notation. | ||
| 3874 | %c means print a number as a single character. | 3876 | %c means print a number as a single character. |
| 3875 | %S means print any object as an s-expression (using `prin1'). | 3877 | %S means print any object as an s-expression (using `prin1'). |
| 3876 | 3878 | ||
| @@ -3893,8 +3895,10 @@ The - and 0 flags affect the width specifier, as described below. | |||
| 3893 | The # flag means to use an alternate display form for %o, %x, %X, %e, | 3895 | The # flag means to use an alternate display form for %o, %x, %X, %e, |
| 3894 | %f, and %g sequences: for %o, it ensures that the result begins with | 3896 | %f, and %g sequences: for %o, it ensures that the result begins with |
| 3895 | \"0\"; for %x and %X, it prefixes the result with \"0x\" or \"0X\"; | 3897 | \"0\"; for %x and %X, it prefixes the result with \"0x\" or \"0X\"; |
| 3896 | for %e, %f, and %g, it causes a decimal point to be included even if | 3898 | for %e and %f, it causes a decimal point to be included even if the |
| 3897 | the precision is zero. | 3899 | the precision is zero; for %g, it causes a decimal point to be |
| 3900 | included even if the the precision is zero, and also forces trailing | ||
| 3901 | zeros after the decimal point to be left in place. | ||
| 3898 | 3902 | ||
| 3899 | The width specifier supplies a lower limit for the length of the | 3903 | The width specifier supplies a lower limit for the length of the |
| 3900 | printed representation. The padding, if any, normally goes on the | 3904 | printed representation. The padding, if any, normally goes on the |
| @@ -3903,10 +3907,12 @@ character is normally a space, but it is 0 if the 0 flag is present. | |||
| 3903 | The 0 flag is ignored if the - flag is present, or the format sequence | 3907 | The 0 flag is ignored if the - flag is present, or the format sequence |
| 3904 | is something other than %d, %e, %f, and %g. | 3908 | is something other than %d, %e, %f, and %g. |
| 3905 | 3909 | ||
| 3906 | For %e, %f, and %g sequences, the number after the "." in the | 3910 | For %e and %f sequences, the number after the "." in the precision |
| 3907 | precision specifier says how many decimal places to show; if zero, the | 3911 | specifier says how many decimal places to show; if zero, the decimal |
| 3908 | decimal point itself is omitted. For %s and %S, the precision | 3912 | point itself is omitted. For %g, the precision specifies how many |
| 3909 | specifier truncates the string to the given width. | 3913 | significant digits to print; zero or omitted are treated as 1. |
| 3914 | For %s and %S, the precision specifier truncates the string to the | ||
| 3915 | given width. | ||
| 3910 | 3916 | ||
| 3911 | Text properties, if any, are copied from the format-string to the | 3917 | Text properties, if any, are copied from the format-string to the |
| 3912 | produced text. | 3918 | produced text. |