]> git.eshelyaron.com Git - emacs.git/commit
Fix a bug when using format field numbers
authorPhilipp Stephani <phst@google.com>
Sat, 3 Jun 2017 09:16:21 +0000 (11:16 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 3 Jun 2017 09:19:02 +0000 (11:19 +0200)
commit7d413cb4da89e0bdd70068e6a5e1dbc57190ed10
tree6ca93c8b51c29a3189d00abdc5d1f419981b8b81
parent0147cdd4d96f1eaeef720ee0b89bddd27eaf4233
Fix a bug when using format field numbers

Previously styled_format overwrite the argument vector.  This is no
longer possible because there might be more than one specification per
argument.  Use the existing auxiliary info array instead.

* src/editfns.c (styled_format): Record arguments in the info
structure instead of overwriting them.
* test/src/editfns-tests.el (format-with-field): Add unit test.
src/editfns.c
test/src/editfns-tests.el