]> git.eshelyaron.com Git - emacs.git/commitdiff
Add autoload cookie and doc fix
authorRichard Stallman <rms@gnu.org>
Wed, 8 Jan 2025 13:26:40 +0000 (08:26 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sat, 11 Jan 2025 11:16:13 +0000 (12:16 +0100)
cond-star.el (cond*): Add autoload cookie.
Doc fix.

(cherry picked from commit 2a3385ab50c2f7281812b8fb582bcdba899f5f47)

lisp/emacs-lisp/cond-star.el

index 90a359d6dc565090e158684456c7023ca2e9644b..e0d4c594741e587dde01d8d6ac377b30aae32707 100644 (file)
@@ -40,6 +40,7 @@
 
 (require 'cl-lib) ; for cl-assert
 
+;;;###autoload
 (defmacro cond* (&rest clauses)
   "Extended form of traditional Lisp `cond' construct.
 A `cond*' construct is a series of clauses, and a clause
@@ -70,11 +71,12 @@ in its body becomes the return value of the `cond*' construct.
 Non-exit clause:
 
 If a clause has only one element, or if its first element is
-t, or if it ends with the keyword :non-exit, then
-this clause never exits the `cond*' construct.  Instead,
-control falls through to the next clause (if any).
-The bindings made in CONDITION for the BODY of the non-exit clause
-are passed along to the rest of the clauses in this `cond*' construct."
+a `bind*' clause, this clause never exits the `cond*' construct.
+Instead, control always falls through to the next clause (if any).
+All bindings made in CONDITION for the BODY of the non-exit clause
+are passed along to the rest of the clauses in this `cond*' construct.
+
+\\[match*\\] for documentation of the patterns for use in `match*'."
   (cond*-convert clauses))
 
 (defmacro match* (pattern _datum)