mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-29 08:31:35 -08:00
Improve the string-limit doc string
* lisp/emacs-lisp/subr-x.el (string-limit): Mention truncate-string-to-width in the doc string.
This commit is contained in:
parent
22c1f00d99
commit
5c86a53296
2 changed files with 8 additions and 1 deletions
|
|
@ -147,6 +147,9 @@ There can be any number of :example/:result elements."
|
|||
:eval (string-limit "foobar" 3)
|
||||
:eval (string-limit "foobar" 3 t)
|
||||
:eval (string-limit "foobar" 10))
|
||||
(truncate-string-to-width
|
||||
:eval (truncate-string-to-width "foobar" 3)
|
||||
:eval (truncate-string-to-width "你好bar" 5))
|
||||
(split-string
|
||||
:eval (split-string "foo bar")
|
||||
:eval (split-string "|foo|bar|" "|")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue