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: Sat, 03 Aug 2024 02:07:59 +0200 Message-ID: <87mslumpsw.fsf@gmail.com> References: <87jzh62vtr.fsf@gmail.com> <877cd5k1ra.fsf@web.de> <871q3d347e.fsf@gmail.com> <877cd4rxqo.fsf@web.de> <867cd4ywnq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , 72328@debbugs.gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 03 02:10:08 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 1sa2LX-0004mF-IO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Aug 2024 02:10:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sa2LB-0005qo-QT; Fri, 02 Aug 2024 20:09:45 -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 1sa2LA-0005kh-2R for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 20:09:44 -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 1sa2L9-0000Z8-Gj for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 20:09:43 -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=CZoQ36QeCcw+LroWnrQUxJ+QxgWBctFAcPLYQxWicwU=; b=TvVpMJc/ZtXyfEnv4GX5ZpGnwhvfinfRjq4Pyu+zqBKTf+wGoPTDNvu+iGyfpb1O/iu+H3jGlVyuAMT6ROiDJ+v9ObE6zNBcmw5sYp1vqtXzOHXwkbqMqOqaPdduibxUpQsIq+NgtiAOO1G/nFP81anxxK/A8XWR83VLFqVqz6ZPxeuQAYsburgW9wYOG45OQLp4rQwha6v4+EvUiaGgIom9nB8Fc8z9/IJwXu7F+JymczJ0PO0MvnYoPDYoYsX2yaLUdXoopXZEthcFFfEBKOVX23Zq1jaDyVef5ylNktGD1iXszd+UUMbWOY862l9K9m7G7iiMuyXjBd3rb8anGg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sa2LS-00013N-4q for bug-gnu-emacs@gnu.org; Fri, 02 Aug 2024 20:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thuna Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2024 00:10:02 +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.17226437694002 (code B ref 72328); Sat, 03 Aug 2024 00:10:02 +0000 Original-Received: (at 72328) by debbugs.gnu.org; 3 Aug 2024 00:09:29 +0000 Original-Received: from localhost ([127.0.0.1]:53882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sa2Kv-00012T-7b for submit@debbugs.gnu.org; Fri, 02 Aug 2024 20:09:29 -0400 Original-Received: from mail-lj1-f176.google.com ([209.85.208.176]:55641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sa2Ku-00012H-0t for 72328@debbugs.gnu.org; Fri, 02 Aug 2024 20:09:28 -0400 Original-Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2f035ae1083so105825071fa.3 for <72328@debbugs.gnu.org>; Fri, 02 Aug 2024 17:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722643682; x=1723248482; 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=CZoQ36QeCcw+LroWnrQUxJ+QxgWBctFAcPLYQxWicwU=; b=Hpr93GTBZSej0mdfZMuqeIZ5Ui8Jl9mt6GNM39E9XC0InWmj/zSrEJodg+2+igkhfT GcjNblVaS2hUD8DY412sWMYnYvbutPFH5+zvtsYocsHL7bpeBmHcOxzpyV7uIB4F70lB 9VIqMtq9qMVDyNq1dJvw4zDungRPwkAGzfV3cLt52S1w1L0U6myRd59qO9Fo8JzGGfZ3 H6ehtz1bf4HmCK01Hxrg5fCr76MKETakb5ipX1HHOf2SmjGM7YLQWJow33cH32t/IW3y FYOKjG27pnxxvIhJe7Jc9Fs6zxy5c2hwqtw+U2oKZnCYOT7QG7cYPT16V2xvQUtZC4ET cWkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722643682; x=1723248482; 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=CZoQ36QeCcw+LroWnrQUxJ+QxgWBctFAcPLYQxWicwU=; b=R2pfPT36xRNHIEHDiEb9oRpe/AqSqmNNyG9f9j5z73WrnngvLV95riGZxp/wNOqf+d JYhxSw0Fr7Se9fWV2Z8bPalTKO9x3q3Hum/b7eS0rNf6zsQLGGGEkYWBi9W7aSvceS3N CZe0MjjP7/setdecyo14ppO32vrNxwJuAkQQlG1ZIL3jj9wD+FsvvWSncQplFmPcClKx s0yjIG8T3SCqFF/3HeSETjBF/DlyOSJdq1BkMT3DLI8phuD7WJG1bkaUwDBpDI4CWijl voDE2kFoPRNo401ELGPAkwTjel2skBzB15J58bNYzIvz/QqSBc9Qk1mQCOO7yjWVJ4f0 FiKw== X-Forwarded-Encrypted: i=1; AJvYcCWbSNIlvYTp6cI2tXACisN11l5sVBSCG5BU8vfI7xgrJ+8emE3+o5Nc3auhDgE8zezcbMs6sWFjw0rAuFyu0h2lVS5yAlA= X-Gm-Message-State: AOJu0Yzodt5gqi9sPel6FbFXeqqYRkQdCBxBykJytYHcEfM+f41rC8Sm gfp1O/Qaelk3Y3/H7hayRAz5r7+153POoFHwTScFJf2u+kJ+IIVb+IN4Lg== X-Google-Smtp-Source: AGHT+IEeHcj8e/HPZe/9ri069x/tZW5RKOpw8QoYdc/5cjV/oEuqnltphJXDZj30ZWWRjPWooGwagw== X-Received: by 2002:a2e:9c90:0:b0:2ef:2c87:3bd7 with SMTP id 38308e7fff4ca-2f15ab0c200mr32552701fa.37.1722643681766; Fri, 02 Aug 2024 17:08:01 -0700 (PDT) Original-Received: from thuna-lis3 ([85.106.105.81]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4282b8ada7esm111305275e9.15.2024.08.02.17.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 17:08:01 -0700 (PDT) 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:289654 Archived-At: > I think I'd be interested to hear about "real life" cases out there > where this choice would make a difference (in either direction). For what its worth, a very imprecise search through all melpa packages revealed exactly zero pcase patterns which this would effect. I will write down the process in case someone wants to try and replicate it themselves: - Clone all repositories in melpa via `make', `package-build-all', or if you are in the horrible situation that I am where every other query doesn't resolve do (in the /path/to/melpa/package-build/ directory) emacs --batch --eval '(push default-directory load-path)' \ -l package-build -l package-recipe \ --eval '(mapc (lambda (file) (message "cloning %s" file) (ignore-errors (package-build--run-process "git" "clone" (package-recipe--upstream-url (package-recipe-lookup file)) (concat "../working/" file)))) (cl-remove-if (lambda (file) (file-exists-p (concat "../working/" file))) (package-recipe-packages)))' - Obtain a list of .el files which contain both "pcase" and "`". - Obtain the pcase forms in those files via (let ((print-level nil) (print-circle nil) (original-buffer (current-buffer))) (with-temp-file "~/pcase-output.eld" (let ((output-buffer (current-buffer))) (with-current-buffer original-buffer (mapc (lambda (file) (kill-buffer (with-current-buffer (find-file-noselect file) (while (re-search-forward "\\_