From be4f8584983e63905aa409efad11fb7d8d418ccb Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 21 Sep 2021 20:30:57 +0200 Subject: Add new function `ensure-list' * doc/lispref/lists.texi (Building Lists): Document it. * lisp/subr.el (ensure-list): New function. * lisp/emacs-lisp/shortdoc.el (list): Mention it. --- lisp/emacs-lisp/shortdoc.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 3e0d5aef022..d4838ff0f85 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -495,6 +495,9 @@ There can be any number of :example/:result elements." :eval (list 1 2 3)) (number-sequence :eval (number-sequence 5 8)) + (ensure-list + :eval (ensure-list "foo") + :eval (ensure-list '(1 2 3))) "Operations on Lists" (append :eval (append '("foo" "bar") '("zot"))) -- cgit v1.2.3