From e3a3ef3659f99823b2d4c6994a2940cca88c3a8d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 26 Sep 2024 17:03:28 -0400 Subject: [PATCH] (pcase-tests-quote-optimization): Fix warning * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lisp/emacs-lisp/pcase-tests.el b/test/lisp/emacs-lisp/pcase-tests.el index e777b71920c..5f2927d1aff 100644 --- a/test/lisp/emacs-lisp/pcase-tests.el +++ b/test/lisp/emacs-lisp/pcase-tests.el @@ -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)) -- 2.39.5