]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix pcase dontcare pattern in cl--sm-macroexpand
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 3 Mar 2021 12:49:31 +0000 (12:49 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Thu, 4 Mar 2021 00:57:28 +0000 (00:57 +0000)
For discussion, see the following thread:
https://lists.gnu.org/r/emacs-devel/2021-03/msg00119.html

* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Fix recently
uncovered use of old name for pcase--dontcare.

lisp/emacs-lisp/cl-macs.el

index 91146c4d0ec362952f216f8d80c059b961961d9d..c38dc44ff60ea0d50411a6c201cadbdf29428420 100644 (file)
@@ -2298,7 +2298,7 @@ of `cl-symbol-macrolet' to additionally expand symbol macros."
             ;; The behavior of CL made sense in a dynamically scoped
             ;; language, but nowadays, lexical scoping semantics is more often
             ;; expected.
-            (`(,(or 'let 'let*) . ,(or `(,bindings . ,body) dontcare))
+            (`(,(or 'let 'let*) . ,(or `(,bindings . ,body) pcase--dontcare))
              (let ((nbs ()) (found nil))
                (dolist (binding bindings)
                  (let* ((var (if (symbolp binding) binding (car binding)))