diff options
author | Eli Zaretskii <eliz@gnu.org> | 2021-04-14 11:47:55 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-04-14 11:47:55 +0300 |
commit | d1559ede54684513b79025ade2b4677447c7a487 (patch) | |
tree | 5bbb4c12e05a3ea4f260d204f3f8e9b854d5a22d /test/lisp/emacs-lisp/map-tests.el | |
parent | 844b8949a71f180d395a237c768b22d91cf91ded (diff) | |
download | emacs-d1559ede54684513b79025ade2b4677447c7a487.tar.gz emacs-d1559ede54684513b79025ade2b4677447c7a487.tar.bz2 emacs-d1559ede54684513b79025ade2b4677447c7a487.zip |
Add two optional arguments to 'string-width'
* src/character.c (Fstring_width, lisp_string_width): Accept two
optional arguments FROM and TO, to indicate the substring to be
considered.
(Fstring_width): Add caveats in the doc string about display
features ignored by the function. (Bug#47712)
* src/character.h (lisp_string_width): Update prototype.
* src/editfns.c (styled_format): Adjust call of lisp_string_width
to its changed signature.
* test/src/character-tests.el (character-test-string-width): New
file with tests for 'string-width'.
* doc/lispref/display.texi (Size of Displayed Text): Document
caveats of using 'string-width'.
* etc/NEWS: Announce the change.
Diffstat (limited to 'test/lisp/emacs-lisp/map-tests.el')
0 files changed, 0 insertions, 0 deletions