From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thuna Newsgroups: gmane.emacs.bugs Subject: bug#72328: [PATCH] Nested backquote in pcase Date: Sun, 28 Jul 2024 17:51:17 +0200 Message-ID: <871q3d347e.fsf@gmail.com> References: <87jzh62vtr.fsf@gmail.com> <877cd5k1ra.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8379"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72328@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 28 17: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 1sY6Cu-000214-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jul 2024 17:53:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sY6Cb-00038N-UZ; Sun, 28 Jul 2024 11:52:53 -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 1sY6CY-000385-UK for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 11:52:52 -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 1sY6CY-0002Nx-Lz for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 11:52:50 -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=BcSBcfMOxu/3S0mZdYWI096U4rFgRF3xIBUrYXtPX54=; b=I3qwJ0x2RQq932GMlXcaObpMuB5ZPgV4tFN0uRyGsxgDrbISzfIHhzIH+dQoGUSiE0uY7XJAb9OjvOgm7vxjEGwszsDGreFJ2J1HEjpfRrclznjkoh5Yq5/UF4rGizf5gEwQxmB1AkbwBkUlXTeBpmUq9RnieBGXVwMcyGR3JIOiiNcwW7KTpM/fB1KMHZbnMxlGuYvIdn/7D4DRvCkfMu2qhJ845yln4TaDz7mpWxyZQpWdQGaYxmBleMznGeY/JeZL8ZVerDhEfic30ucEakuJutadMTzoHQ0YPJv4ipdRRYwBxBWBp4NCOePLNp2yOUaHBS3rO6WC9juIFGiXIQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sY6Cj-0004bK-Rh for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 11:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thuna Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2024 15:53: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.172218196017659 (code B ref 72328); Sun, 28 Jul 2024 15:53:01 +0000 Original-Received: (at 72328) by debbugs.gnu.org; 28 Jul 2024 15:52:40 +0000 Original-Received: from localhost ([127.0.0.1]:44270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sY6CO-0004al-2E for submit@debbugs.gnu.org; Sun, 28 Jul 2024 11:52:40 -0400 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:56601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sY6CL-0004aX-Iu for 72328@debbugs.gnu.org; Sun, 28 Jul 2024 11:52:39 -0400 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5af51684d52so2312692a12.1 for <72328@debbugs.gnu.org>; Sun, 28 Jul 2024 08:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722181880; x=1722786680; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=BcSBcfMOxu/3S0mZdYWI096U4rFgRF3xIBUrYXtPX54=; b=KeXiRlIZW/kWrlijmDZaIYzb90+tOsYpi2Bj2QpsnOvAEuISJCUJrr6/CPmeJRD6pr 7usxQHHTSVAe8vyfkf9tbB203FWQOlSn/JS+yUu2w6U5bUn2wyt9AEKsVx1aRrBmIfYZ wbzJPuRw8M9IgVtzt+sfPCUt9cnK+3QoEPHh2aSdQsaACuhnWmEttaSwGSLydnLoVWJi u1MrOXA0TP8TxRpzHnT7q5tCDOJ0awxdYmmFuqGtvXBVQ5Y9XKYlBHGSUU2esFFwc+Aw Ha2JK950/PEjqTVpezbggO16Zz6Y9FTjoX7p8nQoh8EkKIav+IzMSI7AiSPY+S8w9fWN 2NrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722181880; x=1722786680; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BcSBcfMOxu/3S0mZdYWI096U4rFgRF3xIBUrYXtPX54=; b=W7YiEP7oD86mc4viHHf1BD46p/IDT8oR8mKVgNs4ot8BG+//U8XvUOD/aXVTz9JEfV GrHCcgsAUo+7v3cAu5euSJYq5i0w47eg2zK/B92xqGfgdNcuH9besyAO6Wm+hLhrNBUI okme29uJb4/WYOC0IkNxsBHPDvYL726tHQ5PU0et0P8s/3ZElNZ5aPYwrNA40NZKpXsN huCd0VIzzlKkj2R7QpcQZ+kVAKO69meIK1YW0J5e4tl8ELCOTvJGHykVP0sPbExyC+d5 j2TYSBa0K3Iw89JuNokhn5r1NZMAmokQPplq4UK5fo8ygkpNI22HPyQw2pl81CWUv/Xp WDhA== X-Gm-Message-State: AOJu0YzDhF4VxvAicQC3cGuy5QJ2YmJxMJONmJKVjatA00J2XQCZ7+od f8pXKKQ036aB0/FsaUjqpDb8DxWLEthZfXleXoqhIc7SJ0ZYSWh00j/KmA== X-Google-Smtp-Source: AGHT+IGJ5pQJPobMMeNep+lM4w+lfiexixjfyg7ptQHpTyuwBOBT9UqFrI8ato37PnaNXwVweHgReA== X-Received: by 2002:a17:907:7f0b:b0:a7a:cc10:6682 with SMTP id a640c23a62f3a-a7d4008541dmr333603566b.40.1722181879332; Sun, 28 Jul 2024 08:51:19 -0700 (PDT) Original-Received: from thuna-lis3 ([85.106.105.81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab536cesm397467766b.84.2024.07.28.08.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jul 2024 08:51:18 -0700 (PDT) In-Reply-To: <877cd5k1ra.fsf@web.de> 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:289482 Archived-At: > This would be a backward-incompatible change, breaking existing code. Yes, I forgot to mention this in my original report, but given how unintuitive (IMO) the current behavior is, I expect that very few people will be using patterns which would be effected by this change. > And this change would break the symmetry between `backquote' the macro > and backquote patterns in `pcase'. This is an important design idea. I am not quite sure why you think that this breaks symmetry with the backquote macro; the purpose of this patch was to establish a symmetry in the first place. Would you consider the examples provided as unnatural? > And I don't see any advantage either. AFAICT right now the only way to match an unevaluated (or quoted) `,foo is with `(,'\` (,'\, foo)) which is quite unideal. It is not often that you need this but having this not be representable in this way is not particularly useful.