]> git.eshelyaron.com Git - emacs.git/commit
Make format-spec accept function substitutions
authorStefan Kangas <stefankangas@gmail.com>
Tue, 27 Sep 2022 16:16:51 +0000 (18:16 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 29 Sep 2022 13:39:27 +0000 (15:39 +0200)
commit5281946fbf6b3cdbec5ce82e0057c71849faf4d2
tree8f519625372642a2faaa4a1bf314a07e2e283a6b
parent423bdd5f7f273f40f750eac83017074501d52823
Make format-spec accept function substitutions

* lisp/format-spec.el (format-spec): Accept a function producing the
substitution for a character.
* doc/lispref/strings.texi (Custom Format Strings): Document the
above change.
* test/lisp/format-spec-tests.el (format-spec/function): New test.
Ref. https://lists.gnu.org/r/emacs-devel/2022-09/msg01875.html
doc/lispref/strings.texi
etc/NEWS
lisp/format-spec.el
test/lisp/format-spec-tests.el