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#72328: [PATCH] Nested backquote in pcase Date: Tue, 30 Jul 2024 03:45:31 -0400 Message-ID: References: <87jzh62vtr.fsf@gmail.com> <877cd5k1ra.fsf@web.de> <871q3d347e.fsf@gmail.com> <877cd4rxqo.fsf@web.de> <867cd4ywnq.fsf@gnu.org> 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="15350"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , thuna.cing@gmail.com, 72328@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 30 09:46:09 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 1sYhYe-0003pw-9T for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jul 2024 09:46:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYhYL-0007Cp-U5; Tue, 30 Jul 2024 03:45:50 -0400 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 1sYhYK-0007Cd-Gw for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2024 03:45:48 -0400 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 1sYhYK-0005MW-5j for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2024 03:45:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=NXsEbZLCZDm+PLosyM+BwxnVq+Y0usNB+xBLlPtcFQY=; b=MZAiPw7GxW27WtW33zY9iW8+yDen7WmOblrukUsN81M/rHznsmCIDPf3FnTZzNERpLYSX6bnDIA9JHyUFHB/0fKZEgXEsEBMQD/+3sPm8okQgvZTMTGFLg9DLBseHvn8ImAfuLaSBMoRpxG0WSI0b6BFe/C3o5UZvUCi0zAPS4mahBIiVGs6bo/4rFjsR52EDEOZgto137+zZd96LPs/6Ek/pdEluGfkCSN757cbHHFUUysw7UEMEy9vvODJyivTgaXQpPbvCXcEOyxpCeGYooj7gy/JaAaACbLhyV4SQtx7f6OhJXf++ijouAnRMbYEec0OQaVaZsKxtoWlWunPDw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYhYX-0005Lj-Uw for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2024 03:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jul 2024 07:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72328 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72328-submit@debbugs.gnu.org id=B72328.172232556020555 (code B ref 72328); Tue, 30 Jul 2024 07:46:01 +0000 Original-Received: (at 72328) by debbugs.gnu.org; 30 Jul 2024 07:46:00 +0000 Original-Received: from localhost ([127.0.0.1]:46886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYhYW-0005LT-26 for submit@debbugs.gnu.org; Tue, 30 Jul 2024 03:46:00 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:48548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYhYU-0005LF-32 for 72328@debbugs.gnu.org; Tue, 30 Jul 2024 03:45:58 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id EBF794404D1; Tue, 30 Jul 2024 03:45:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1722325535; bh=nl4h09CSJi4Ssll/kc9x2XbkElXFTwP0gv3QWCKPDtM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PLSa67KHWVuOCjNht3EoDmgmdgAP73w6k3GX/Y5Fe9eajA5h6ZghJZ0i8JuHfob4/ 6B64+9FlvzWkueZIiw4zfbfzJo4l12FHixYcfQ3x4l/8B2if2p3uWCtVdrfe1BBFDy ZmRoWD+/wcJRoaXfibPItSTzOo/k4LIle5QWRveyLKtVcH+bWbRdj7r0ciuwS43uwz lh/GL4rcuZaVLs23tM0EqYjHckRdTm0LogYYbFRTviOx7iKE4dGWPVgC+dg3FtdglZ nlsiRr44Q43e5vSAwUefsX6+TtgqMzM397QhqXR9Kv7Yw8UJL4pD3tSnpFYvxMtdNI NYfLb0wZyW5Iw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 32E3C44050D; Tue, 30 Jul 2024 03:45:35 -0400 (EDT) Original-Received: from asado (dyn.144-85-159-142.dsl.vtx.ch [144.85.159.142]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B696F120115; Tue, 30 Jul 2024 03:45:33 -0400 (EDT) In-Reply-To: <867cd4ywnq.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Jul 2024 19:45:29 +0300") 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:289545 Archived-At: > Stefan, any comments? FWIW, when I (re)implemented the Pcase backquote with `pcase-defmacro` I hesitated between doing what Thuna suggests and what we have now. I opted for the current behavior because it's simpler (at least from the implementation's point of view), even though it admittedly breaks the symmetry with the backquote macro. I think I'd be interested to hear about "real life" cases out there where this choice would make a difference (in either direction). If we indent to change the behavior, I think we'd first need to introduce a warning for patterns that would be affected by the change. Stefan