]> git.eshelyaron.com Git - emacs.git/commitdiff
(pcase-tests-quote-optimization): Fix warning
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 Sep 2024 21:03:28 +0000 (17:03 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Sep 2024 10:23:38 +0000 (12:23 +0200)
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-quote-optimization):
Fix confusing code.

(cherry picked from commit c95620ffbf8c2caebdb6a7aba7dbe9cd223fa2f4)

test/lisp/emacs-lisp/pcase-tests.el

index e777b71920c0d6f970ff149ebb34a4576ff783e6..5f2927d1aff2c30e1f70914c634a3eda79deb1af 100644 (file)
@@ -85,7 +85,7 @@
                                     (`(,_ . ,_) (BAR))
                                     ('(a b) (FOO))))))
   (let ((exp1 (macroexpand '(pcase EXP
-                              (`(`(,(or 'a1 'b1)) (FOO1)))
+                              (`((,(or 'a1 'b1))) (FOO1))
                               ('(c) (FOO2))
                               ('(d) (FOO3))))))
     (should (= 1 (with-temp-buffer (prin1 exp1 (current-buffer))