summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/shortdoc.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-10-30 15:22:36 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-10-30 15:22:36 +0200
commitc23cb2861eab646498d2d7d28a8d46f4de91ebb3 (patch)
tree9d5187a11c6cf7ebb6095f3e9117886314d45f4d /lisp/emacs-lisp/shortdoc.el
parentb54be604bf8ad67346a82a0755349ffa8a715a11 (diff)
downloademacs-c23cb2861eab646498d2d7d28a8d46f4de91ebb3.tar.gz
emacs-c23cb2861eab646498d2d7d28a8d46f4de91ebb3.tar.bz2
emacs-c23cb2861eab646498d2d7d28a8d46f4de91ebb3.zip
Add new function string-glyph-split
* doc/lispref/strings.texi (Creating Strings): Document it. * lisp/emacs-lisp/shortdoc.el (string): Mention it. * lisp/emacs-lisp/subr-x.el (string-glyph-split): New function.
Diffstat (limited to 'lisp/emacs-lisp/shortdoc.el')
-rw-r--r--lisp/emacs-lisp/shortdoc.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index 817dfa6b71e..daf362dd88b 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -159,6 +159,8 @@ There can be any number of :example/:result elements."
:eval (split-string-and-unquote "foo \"bar zot\""))
(split-string-shell-command
:eval (split-string-shell-command "ls /tmp/'foo bar'"))
+ (string-glyph-split
+ :eval (string-glyph-split "Hello, πŸ‘ΌπŸ»πŸ§‘πŸΌβ€πŸ€β€πŸ§‘πŸ»"))
(string-lines
:eval (string-lines "foo\n\nbar")
:eval (string-lines "foo\n\nbar" t))