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: Mon, 19 Feb 2024 18:16:37 +0000 Message-ID: <87zfvw720q.fsf@localhost> References: <87a5p5l3jm.fsf@localhost> <9bc2bd05-5fdb-9d5a-3d98-c344c7275027@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23027"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jim Porter , 68509@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 19 19:13:59 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 1rc89P-0005nd-4r for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Feb 2024 19:13:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc899-0001ib-AV; Mon, 19 Feb 2024 13:13:43 -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 1rc897-0001iM-L6 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 13:13:41 -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 1rc897-0004BC-Ck for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 13:13:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rc89S-0005c4-IA for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 13:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2024 18:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68509 X-GNU-PR-Package: emacs Original-Received: via spool by 68509-submit@debbugs.gnu.org id=B68509.170836640521458 (code B ref 68509); Mon, 19 Feb 2024 18:14:02 +0000 Original-Received: (at 68509) by debbugs.gnu.org; 19 Feb 2024 18:13:25 +0000 Original-Received: from localhost ([127.0.0.1]:43371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc88q-0005a1-I9 for submit@debbugs.gnu.org; Mon, 19 Feb 2024 13:13:24 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:50349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc88o-0005Zo-1G for 68509@debbugs.gnu.org; Mon, 19 Feb 2024 13:13:23 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 736C0240103 for <68509@debbugs.gnu.org>; Mon, 19 Feb 2024 19:12:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708366374; bh=941w/mre/xBNWnY3p0jVYgUMGeTLkGzQdl/X6DZy4ME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=gspBKVtH4z+GXRFAnbU9wA2sZ5n5zk/34L+ynPrY/5MO51Xsmcy8w6vG8urYEWz8E 1PsQp5q/Ar4QpwBINBr6BAqprKoIbfjvh+bYlMHZLfa5DlIDtvcMqtEEpDhyxwS6df nYupfKmoTLIrJ7TWL7GPHGCFXJxkp3ypCNfOyBbfMqOxxtOxRQiIPaqXtdoXtXcMl3 PBGfzQPufNBLLDdZ191wVReoxx4OeRIlNCdYeax/k5ZjWGl7uIzOwoJNDkXwysN3+T NslYf96lr9y03Yt9qvhLdhhB8yqNfXMUgDaXjyx72Lti8dQBRkDNqlJ1qRLyJSVNnk tTIk6QjHy3HgA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TdrHT4sJ1z6twJ; Mon, 19 Feb 2024 19:12:53 +0100 (CET) In-Reply-To: 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:280286 Archived-At: Stefan Monnier writes: > The difficulty in resolving this can be illustrated with the following > pattern: > > `(a . ,b) > > This pattern leads to two tests: (consp VAL) and (eq 'a (car VAL)). > When destructuring, we want to throw away both tests (we want to throw > away most tests, except those needed to choose between two `or` > branches). > > We could decide to emit a warning because we silently skip > the `eq` test, which would help the coders understand that the pattern > doesn't do what they think. > But emitting that same warning because we silently skip the `consp` test > would be really annoying because rewriting the pattern to avoid this > is impractical. May you please elaborate how this example is related to destructuring from user perspective? It appears to me that you are talking about implementation details of `pcase', which are elusive to me. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at