]> git.eshelyaron.com Git - emacs.git/commitdiff
Add try-completion to the string shortdoc
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Dec 2020 21:08:56 +0000 (22:08 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Dec 2020 21:08:56 +0000 (22:08 +0100)
* lisp/emacs-lisp/shortdoc.el (string): Mention try-completion here.

lisp/emacs-lisp/shortdoc.el

index 9bd06636f4d38efc2bd1e0e02686467a734a8271..7bb7d233b477df68941ea50a233050240a892b9b 100644 (file)
@@ -192,6 +192,8 @@ There can be any number of :example/:result elements."
    :eval (reverse "foo"))
   (substring-no-properties
    :eval (substring-no-properties (propertize "foobar" 'face 'bold) 0 3))
+  (try-completion
+   :eval (try-completion "foo" '("foobar" "foozot" "gazonk")))
   "Predicates for Strings"
   (string-equal
    :eval (string-equal "foo" "foo"))