diff options
| author | Paul Eggert | 2017-06-03 01:31:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-06-03 01:31:52 -0700 |
| commit | 0147cdd4d96f1eaeef720ee0b89bddd27eaf4233 (patch) | |
| tree | 30e3d37cad364e793b4a34d9c64d08f3244ad1fe /src/editfns.c | |
| parent | 73635edb43e0e4a31cfe8af41ccb07c32836b148 (diff) | |
| download | emacs-0147cdd4d96f1eaeef720ee0b89bddd27eaf4233.tar.gz emacs-0147cdd4d96f1eaeef720ee0b89bddd27eaf4233.zip | |
Document uniqueness limitation of ‘format’
* doc/lispref/strings.texi (Formatting Strings):
* src/editfns.c (Fformat):
Document that field numbers should be unique within a format.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index 29af25aab4f..a5088b0a1fd 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3901,9 +3901,10 @@ where field is [0-9]+ followed by a literal dollar "$", flags is | |||
| 3901 | followed by [0-9]+. | 3901 | followed by [0-9]+. |
| 3902 | 3902 | ||
| 3903 | If a %-sequence is numbered with a field with positive value N, the | 3903 | If a %-sequence is numbered with a field with positive value N, the |
| 3904 | Nth argument is substituted instead of the next one. A format can | 3904 | Nth argument is substituted instead of the next one. A field number |
| 3905 | contain either numbered or unnumbered %-sequences but not both, except | 3905 | should differ from the other field numbers in the same format. A |
| 3906 | that %% can be mixed with numbered %-sequences. | 3906 | format can contain either numbered or unnumbered %-sequences but not |
| 3907 | both, except that %% can be mixed with numbered %-sequences. | ||
| 3907 | 3908 | ||
| 3908 | The + flag character inserts a + before any positive number, while a | 3909 | The + flag character inserts a + before any positive number, while a |
| 3909 | space inserts a space before any positive number; these flags only | 3910 | space inserts a space before any positive number; these flags only |