]> git.eshelyaron.com Git - emacs.git/commit
Limit format fields to more POSIX-like spec
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Jun 2017 23:03:12 +0000 (16:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Jun 2017 23:06:38 +0000 (16:06 -0700)
commit8de2581a64dac3785fc3877f7cd87c4164fd2936
treeaf8885c43a57dee86b17c05118a78d6f1d0361ac
parent178d0cb5f530e6d7eb36eb9987ff405c854ccdb3
Limit format fields to more POSIX-like spec

* doc/lispref/strings.texi (Formatting Strings):
Don’t allow mixing numbered with unnumbered format specs.
* src/editfns.c (styled_format): Don’t bother checking for field 0,
since it doesn’t crash and the behavior is not specified.
* test/src/editfns-tests.el (format-with-field): Adjust tests to
match current doc.  Add more tests for out-of-range fields.
doc/lispref/strings.texi
src/editfns.c
test/src/editfns-tests.el