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, 20 Feb 2024 13:40:52 +0000 Message-ID: <87o7cbz21n.fsf@localhost> References: <87a5p5l3jm.fsf@localhost> <9bc2bd05-5fdb-9d5a-3d98-c344c7275027@gmail.com> <87sf2xjezi.fsf@localhost> <871q98hiqa.fsf@localhost> <8734to8gov.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32888"; 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 Tue Feb 20 14:38: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 1rcQKC-0008Kd-FD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Feb 2024 14:38:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcQJq-00070u-1a; Tue, 20 Feb 2024 08:37:58 -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 1rcQJZ-0006wZ-Tv for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:37:49 -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 1rcQJY-0003M0-ES for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:37:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcQJu-00011g-3r for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 08:38: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: Tue, 20 Feb 2024 13:38: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.17084362633912 (code B ref 68509); Tue, 20 Feb 2024 13:38:02 +0000 Original-Received: (at 68509) by debbugs.gnu.org; 20 Feb 2024 13:37:43 +0000 Original-Received: from localhost ([127.0.0.1]:44543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcQJb-000112-Ev for submit@debbugs.gnu.org; Tue, 20 Feb 2024 08:37:43 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:42309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcQJY-00010n-TZ for 68509@debbugs.gnu.org; Tue, 20 Feb 2024 08:37:42 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7561B240027 for <68509@debbugs.gnu.org>; Tue, 20 Feb 2024 14:37:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708436232; bh=uYyhF4W3hSfUe4jx9jc1+3ZzndGQrDudhaBC0oIC9Xg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=B3hyE3yG+tqdPS5eAAipcZoLctekq5qsMjZ+SSNtDkPBNnRpbioD7/MOhzLHZelz0 5ZV+ojuBp4pn/V2sdmY7smtRAr2E941Q0l3YVTqcG8dgyH9r1weQ6FrbtFbc/BHvuW QeaEuPakzI9f0ukVKQQ3Hn9oOFEeROCIH2kWlO6IJ0+eHpbcemMc6SPDjTn+t+Md/0 l+lZ8jYCwXGlfnSkA6SRYUoPhSwf8kW7hcAA3inFR/B/13SuWoffWxZO2xxYJgd5h9 1txISbYoraf7h/fTqOhc+pmKGkPQSINh3oTt35rQt60V43qqKaJHbH8nQsL9x6sGjz 2f2IEFC+wp70A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TfL6v0ZKcz9rxD; Tue, 20 Feb 2024 14:37:10 +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:280320 Archived-At: Stefan Monnier writes: >> In my patch, I proposed to skip such elements. >> An alternative could be throwing an error. > > As I said, what you propose is a *different* construct. > Maybe we should add some extra option/keyword to `pcase-dolist` to > indicate what to do with elements that don't match (such as signaling > an error, a warning, silently skipping it, ...). > > Similar issues affect `pcase-let`, of course. What about adding extra option/keyword and also showing a runtime warning when pcase-dolist/pcase-let encounter something that does not match the pattern? In such situation, the code logic probably has a problem that is worth highlighting. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at