1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 06:50:23 -08:00

Autoload match*, bind*, bind-and* dummy macros

* lisp/emacs-lisp/cond-star.el (match*, bind*, bind-and*):
Autoload, for the sake of syntax highlighting.
This commit is contained in:
Sean Whitton 2025-11-14 14:11:04 +00:00
parent 0d4741ec92
commit 3c9bcdebe4

View file

@ -92,6 +92,10 @@ 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))
;; The following three macros are autoloaded for the sake of syntax
;; highlighting.
;;;###autoload
(defmacro match* (pattern _datum)
"This specifies matching DATUM against PATTERN.
It is not really a Lisp function, and it is meaningful
@ -158,6 +162,7 @@ ATOM (meaning any other kind of non-list not described above)
;; FIXME: `byte-compile-warn-x' is not necessarily defined here.
(byte-compile-warn-x pattern "`match*' used other than as a `cond*' condition"))
;;;###autoload
(defmacro bind* (&rest bindings)
"This macro evaluates BINDINGS like `let*'.
It is not really a Lisp function, and it is meaningful
@ -165,6 +170,7 @@ only in the CONDITION of a `cond*' clause."
;; FIXME: `byte-compile-warn-x' is not necessarily defined here.
(byte-compile-warn-x bindings "`bind' used other than as a `cond*' condition"))
;;;###autoload
(defmacro bind-and* (&rest bindings)
"This macro evaluates BINDINGS like `if-let*'.
It is not really a Lisp function, and it is meaningful