]> code.delx.au - gnu-emacs/commitdiff
Use PAT rather than UPAT in pcase macros
authorJohan Bockgård <bojohan@gnu.org>
Sat, 5 Sep 2015 15:10:50 +0000 (17:10 +0200)
committerJohan Bockgård <bojohan@gnu.org>
Sat, 5 Sep 2015 16:58:24 +0000 (18:58 +0200)
* lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>:
* lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>: Use PAT rather
  than UPAT.

lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/eieio.el

index 06e75b36670ecdff74929ee1c482103c610636db..30581e37e94deacfb3f1ea970186916a17b9ba5b 100644 (file)
@@ -2777,10 +2777,10 @@ non-nil value, that slot cannot be set via `setf'.
 ;;;###autoload
 (pcase-defmacro cl-struct (type &rest fields)
   "Pcase patterns to match cl-structs.
-Elements of FIELDS can be of the form (NAME UPAT) in which case the contents of
-field NAME is matched against UPAT, or they can be of the form NAME which
+Elements of FIELDS can be of the form (NAME PAT) in which case the contents of
+field NAME is matched against PAT, or they can be of the form NAME which
 is a shorthand for (NAME NAME)."
-  (declare (debug (sexp &rest [&or (sexp pcase-UPAT) sexp])))
+  (declare (debug (sexp &rest [&or (sexp pcase-PAT) sexp])))
   `(and (pred (pcase--flip cl-typep ',type))
         ,@(mapcar
            (lambda (field)
index 23203003d07c3cd892d0cd99e91dcf54b86951e9..d6c27be05678be8de640b5fdf4a9d7245bb5a9e6 100644 (file)
@@ -349,10 +349,10 @@ variable name of the same name as the slot."
 
 (pcase-defmacro eieio (&rest fields)
   "Pcase patterns to match EIEIO objects.
-Elements of FIELDS can be of the form (NAME UPAT) in which case the contents of
-field NAME is matched against UPAT, or they can be of the form NAME which
+Elements of FIELDS can be of the form (NAME PAT) in which case the contents of
+field NAME is matched against PAT, or they can be of the form NAME which
 is a shorthand for (NAME NAME)."
-  (declare (debug (&rest [&or (sexp pcase-UPAT) sexp])))
+  (declare (debug (&rest [&or (sexp pcase-PAT) sexp])))
   (let ((is (make-symbol "table")))
     ;; FIXME: This generates a horrendous mess of redundant let bindings.
     ;; `pcase' needs to be improved somehow to introduce let-bindings more