From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly Date: Tue, 16 Jan 2024 15:07:57 +0000 Message-ID: <87a5p5l3jm.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9998"; mail-complaints-to="usenet@ciao.gmane.io" To: 68509@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 16 16:06:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rPl1B-0002Pg-35 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jan 2024 16:06:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPl0u-00046U-8a; Tue, 16 Jan 2024 10:06:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPl0r-00046G-Ru for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 10:06:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPl0r-0004Ya-HE for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 10:06:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPl0r-0007Gw-U9 for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 10:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jan 2024 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68509 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170541750227871 (code B ref -1); Tue, 16 Jan 2024 15:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2024 15:05:02 +0000 Original-Received: from localhost ([127.0.0.1]:49433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPkzu-0007FE-10 for submit@debbugs.gnu.org; Tue, 16 Jan 2024 10:05:02 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:59156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPkzs-0007Er-Di for submit@debbugs.gnu.org; Tue, 16 Jan 2024 10:05:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPkzm-0003yv-Hc for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 10:04:54 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPkzh-0004Du-15 for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 10:04:54 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A9F3B240027 for ; Tue, 16 Jan 2024 16:04:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705417484; bh=rmbY0EM1yzxtlzXn9sixFv4fr2rVX2U2laBnhq0bnj0=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=J+O+GWsmfrsEh5evE3VZpymzA10jtHRZxLFdh+kT0z9mqk4G1/vhiQ86Z/by9sjJH tyYNTs5f+vxg+95uPjQsNpwAmTJIF3paq3deIlnTStNlgomxY3b4FH0QS2Vh5W+539 Yz374liPWtwLnE5JnvZwxsNQy5EfdAPryFmi8EbSfPm/Pz6yj4VRODmIXTNlmQZ4zH hDH0Dm4TkQxoqa7brTB0uEwdw0aMluHFVsLIxpJ2//7oxV4Vkykzfy1dRrn5YSx99V RJrD+gOD9Dbk+O3C41tN4YeiWeD/QXOCEm+de+cfHtZ08GjnHl4W3L6Y5nMHJ2flu5 lNf9E9mBu2Knw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TDsk40dVSz6tvm for ; Tue, 16 Jan 2024 16:04:43 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278340 Archived-At: Hi, Consider the following (pcase-dolist (`(,(and (pred stringp) a) . ,(and (pred stringp) b)) '(("TODO") ("DONE" . "a"))) (warn "%S :: %S" a b)) Executing the above yields =E2=9B=94 Warning (emacs): "TODO" :: nil =E2=9B=94 Warning (emacs): "DONE" :: "a" even though ("TODO") does not match the pattern. In contrast (dolist (el '(("TODO") ("DONE" . "a"))) (pcase el (`(,(and (pred stringp) a) . ,(and (pred stringp) b)) (warn "%S :: %S" a b)))) correctly displays =E2=9B=94 Warning (emacs): "DONE" :: "a" In GNU Emacs 30.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.39, cairo version 1.18.0) of 2024-01-16 built on localhost Repository revision: 5f73258753ee91c8648e0be55332f7dbaea9fa8b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101010 System Description: Gentoo Linux --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at