From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68509: 30.0.50; pcase-dolist matches backquote pattern incorrectly Date: Tue, 20 Feb 2024 12:51:59 -0500 Message-ID: References: <87a5p5l3jm.fsf@localhost> <9bc2bd05-5fdb-9d5a-3d98-c344c7275027@gmail.com> <87sf2xjezi.fsf@localhost> <871q98hiqa.fsf@localhost> <8734to8gov.fsf@localhost> <87o7cbz21n.fsf@localhost> <87jzmzyxlv.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13630"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jim Porter , 68509@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 20 18:53:12 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 1rcUIq-0003O8-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Feb 2024 18:53:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcUIN-0007un-UL; Tue, 20 Feb 2024 12:52: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 1rcUIL-0007u2-VA for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 12:52:42 -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 1rcUIL-0006WJ-A0 for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 12:52:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcUIh-00089I-32 for bug-gnu-emacs@gnu.org; Tue, 20 Feb 2024 12:53:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2024 17:53:03 +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.170845155431246 (code B ref 68509); Tue, 20 Feb 2024 17:53:03 +0000 Original-Received: (at 68509) by debbugs.gnu.org; 20 Feb 2024 17:52:34 +0000 Original-Received: from localhost ([127.0.0.1]:46495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcUIE-00087u-DM for submit@debbugs.gnu.org; Tue, 20 Feb 2024 12:52:34 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcUI8-00087T-R2 for 68509@debbugs.gnu.org; Tue, 20 Feb 2024 12:52:32 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0FD551000C3; Tue, 20 Feb 2024 12:52:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1708451520; bh=cFblzX1YyRwYGtWyIPBhkFvvg05oJ16v5QFMgE8FAsQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=W/rzQDBn3qgyBb05cn7ofM//Bzp5JspTUPFFWO3u3mlSFgKXPvfwDM+r76zveAlvU 4wCM910397K4Mt736UxYRQXR8P7vHdv5iZG7p/8tZ6Vjd5C/vyU96tqiQz7eA5kq/o T3I6QMKHuyuWJq89ngdqC+GHkrBaHJiwfVD5nbrsRGYmDuoghr9bPKdy9DBIVLjC3x NC0Dh1KB9huWgZUGg7nd2V1vukd5Hdnrr+LVmvkBBjRrZWyt9U+RIc3ASJS5slhoL0 kbPaLgKqkxgEyRe68gc3fk2kjW9f6wl9a7w9ffc5bbRpSGKXZCFWUlLQsqCybdg1wr JMP4aO6ngNQ+Q== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 11EA010004B; Tue, 20 Feb 2024 12:52:00 -0500 (EST) Original-Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E97E112067B; Tue, 20 Feb 2024 12:51:59 -0500 (EST) In-Reply-To: <87jzmzyxlv.fsf@localhost> (Ihor Radchenko's message of "Tue, 20 Feb 2024 15:16:44 +0000") 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:280348 Archived-At: >>> 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 the current use of those primitives, it's routine/normal/common for >> a pattern like `(,a ,b) to encounter lists of different length than 2, >> so a warning should be emitted only if specifically requested via an >> option/keyword. > But isn't it undocumented? AFAIK the "best" documentation we have for that is the one in `pcase-let`, which is indeed unsatisfactory. Stefan