From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#68030: 29.1; (elisp) `pcase Macro' Reformulation with `pcase' example Date: Mon, 25 Dec 2023 08:47:17 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31007"; mail-complaints-to="usenet@ciao.gmane.io" To: Drew Adams , 68030-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 25 17:48:27 2023 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 1rHo7v-0007qq-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Dec 2023 17:48:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHo7R-0002xg-U2; Mon, 25 Dec 2023 11:47:57 -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 1rHo7Q-0002wb-2o for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 11:47:56 -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 1rHo7P-0002Jt-Oo for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 11:47:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHo7W-0004g7-9Z for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2023 11:48:02 -0500 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Dec 2023 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68030 X-GNU-PR-Package: emacs Mail-Followup-To: 68030@debbugs.gnu.org, stefankangas@gmail.com, drew.adams@oracle.com Original-Received: via spool by 68030-done@debbugs.gnu.org id=D68030.170352285417814 (code D ref 68030); Mon, 25 Dec 2023 16:48:02 +0000 Original-Received: (at 68030-done) by debbugs.gnu.org; 25 Dec 2023 16:47:34 +0000 Original-Received: from localhost ([127.0.0.1]:55218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHo74-0004dF-Ai for submit@debbugs.gnu.org; Mon, 25 Dec 2023 11:47:34 -0500 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:52392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHo71-0004d0-Uk for 68030-done@debbugs.gnu.org; Mon, 25 Dec 2023 11:47:32 -0500 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a265d4f78bfso324649966b.0 for <68030-done@debbugs.gnu.org>; Mon, 25 Dec 2023 08:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703522838; x=1704127638; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=W7JcnGKv0QL/rmR4Dl8KNLIzlwmG9gPY4lNRlu1jzc8=; b=OjKlIKs+RtizX/M7S79suGad143hXckhSZ91LfR00rs4ASnyCM1JjhOjAx3Ko6d8Em 2yqeD3Zfh9rUJ++Av95sLZHRlhd/HZ+qwTPe5Vl2mW95lLxHg4uoLuGUHDyYNQmWVGs8 lCjaAhdKzNRth7EjG1mqth2VuVhJ1lApILYFo7Fc6dlDph8Kc9fPL76vj3pvntgqxEth VlLxBvo0d0W04sgmj42KQj4Wu8HzUJ6XX82NRTJ7voVXhcMJVQ7LYJnfAEex3ePVPk2C u2OXlIIV2tBe2rTcjwQpda1T9RlwAmSz7xGNkQeJdsfdP/axs1crFkRFlGGuQdrj7bgI jM7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703522838; x=1704127638; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W7JcnGKv0QL/rmR4Dl8KNLIzlwmG9gPY4lNRlu1jzc8=; b=GAS6pIza/BU/NgjEP8HbX9fLDFY6VMv//AtFOkUlWRqf5HzBvWr9YT4glD9XIqXtTv UYkis1RCdLYWqxHMl83LPqzd5GLuiYYPalXooI2suv7gSBWY/IVf8j/TLnA9vgyKlpVO BppEbtdy9tuUqnrqaiJxEJyK6a1u43WSYehhjvONnsYeylSO32tONNuJqa/gzWrTM7K6 sWDPH3M0jAku5lSbS5WIpE5pXT39zK4RhIEnbu18VyB5cfGNkIg/HsYNsWigkjgpLMvB 2cNdEw41cbJsgRqdYkicHWEUw8Wipi0FIhLzzZNYpBbtK/3yHYTq2NEj7ftcdj3CpKwG 4THg== X-Gm-Message-State: AOJu0YxjsI12SCuir5+bokbKeWtPmkiQ8/4GWoLNk7IOevbm3jn2qHQB 5t9v5XQc/r+Nx2qQxwt/Gx0qIbz8/e1p+Yfsi5g= X-Google-Smtp-Source: AGHT+IHOpxUvC7vs/5LyzIi+jTjNhXn2QTdnPg7Qm+4MRIij14yWSPhTYgMp9xONGwBPaSsoGpBFLl6uAUN8FcJbL0A= X-Received: by 2002:a50:f68f:0:b0:554:d3f1:526f with SMTP id d15-20020a50f68f000000b00554d3f1526fmr1675292edn.9.1703522838490; Mon, 25 Dec 2023 08:47:18 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 25 Dec 2023 08:47:17 -0800 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:276872 Archived-At: Drew Adams writes: > We shouldn't try to introduce (and perhaps even motivate) the use of > `pcase' for such a "simple matching task". The `pcase' version is > many times more complex than the simple `if' version with a > single-sexp THEN and a single-sexp ELSE. The purpose is to start with a small example to teach the reader about pcase. I see nothing that needs changing here. > Even if the aim is to present `or', `and', `pred' and `app', a better > example should be used - something where it really _helps_ to use those > subpatterns. In the example chosen they just add noise. Without any concrete suggestions, I don't see anything actionable here. I'm therefore closing this bug report. > [Not part of this bug report, but you might also want to move the whole > `Caveats for SYMBOL in Sequencing Patterns' to a separate node (with > `pcase' somewhere in the node name).] I don't see any benefit in doing that. > > In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-08-02 built on > AVALON > Windowing system distributor 'Microsoft Corp.', version 10.0.19045 > System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.3803) > > Configured using: > 'configure --with-modules --without-dbus --with-native-compilation=aot > --without-compress-install --with-tree-sitter CFLAGS=-O2' > > Configured features: > ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP > NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB > > (NATIVE_COMP present but libgccjit not available)