]> git.eshelyaron.com Git - emacs.git/commit
Implement field numbers in format strings
authorPhilipp Stephani <phst@google.com>
Wed, 31 May 2017 22:09:43 +0000 (00:09 +0200)
committerPhilipp Stephani <phst@google.com>
Thu, 1 Jun 2017 22:22:13 +0000 (00:22 +0200)
commit0dd1bbb0bb228acab21b8e16f2f2a0b5a17b19ab
tree279fbd070724c1d04945b69db32eb69957274e72
parent404273aeacba39833ae3a38ce6764cc7a636e9d9
Implement field numbers in format strings

A field number explicitly specifies the argument to be formatted.
This is especially important for potential localization work, since
grammars of various languages dictate different word orders.

* src/editfns.c (Fformat): Update documentation.
(styled_format): Implement field numbers.

* doc/lispref/strings.texi (Formatting Strings): Document field numbers.

* lisp/emacs-lisp/bytecomp.el (byte-compile-format-warn): Adapt.

* test/src/editfns-tests.el (format-with-field): New unit test.
doc/lispref/strings.texi
etc/NEWS
lisp/emacs-lisp/bytecomp.el
src/editfns.c
test/src/editfns-tests.el