1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00
emacs/doc
Eli Zaretskii d1559ede54 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.
2021-04-14 11:47:55 +03:00
..
emacs Add new icomplete-vertical-mode 2021-04-10 23:51:05 +01:00
lispintro Remove references to very old versions of Emacs from eintr 2021-04-03 00:53:43 +02:00
lispref Add two optional arguments to 'string-width' 2021-04-14 11:47:55 +03:00
man Update copyright year to 2021 2021-01-01 01:13:56 -08:00
misc Improvements to message-syntax-checks docs and options 2021-04-13 08:45:07 -07:00