diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-23 07:59:24 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-23 07:59:24 +0100 |
commit | 5c86a5329664cd5fd3b81fe991c8d7dc18815e07 (patch) | |
tree | c6b325408b6a6260c8eb9b673a468261de303467 /lisp/emacs-lisp/shortdoc.el | |
parent | 22c1f00d997d38ba0c453da5f5e9c526d0ac05b0 (diff) | |
download | emacs-5c86a5329664cd5fd3b81fe991c8d7dc18815e07.tar.gz emacs-5c86a5329664cd5fd3b81fe991c8d7dc18815e07.tar.bz2 emacs-5c86a5329664cd5fd3b81fe991c8d7dc18815e07.zip |
Improve the string-limit doc string
* lisp/emacs-lisp/subr-x.el (string-limit): Mention
truncate-string-to-width in the doc string.
Diffstat (limited to 'lisp/emacs-lisp/shortdoc.el')
-rw-r--r-- | lisp/emacs-lisp/shortdoc.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index e9e1be1d550..0067495fea0 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -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|" "|") |