From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#67611: [PATCH] Add a Pcase pattern `cl-lambda` equivalent to `cl-destructuring-bind` Date: Thu, 8 Feb 2024 13:41:49 +0000 Message-ID: References: <277dd49a-e96d-4faf-a22e-aca952354a37@protonmail.com> <30f1bf76-1cf1-493e-be4f-38e405d0ecf6@protonmail.com> <875xzw4ngq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34981"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67611@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 08 14:43:03 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 1rY4gB-0008sb-ER for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Feb 2024 14:43:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY4g0-0004pp-4y; Thu, 08 Feb 2024 08:42:52 -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 1rY4fx-0004nN-HM for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 08:42:49 -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 1rY4fw-0006lr-AX for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 08:42:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rY4gA-0008L9-CZ for bug-gnu-emacs@gnu.org; Thu, 08 Feb 2024 08:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67611 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 67611-submit@debbugs.gnu.org id=B67611.170739974332015 (code B ref 67611); Thu, 08 Feb 2024 13:43:02 +0000 Original-Received: (at 67611) by debbugs.gnu.org; 8 Feb 2024 13:42:23 +0000 Original-Received: from localhost ([127.0.0.1]:59357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY4fX-0008KJ-4N for submit@debbugs.gnu.org; Thu, 08 Feb 2024 08:42:23 -0500 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:45382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY4fV-0008K6-Og for 67611@debbugs.gnu.org; Thu, 08 Feb 2024 08:42:22 -0500 Original-Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-51032058f17so2210702e87.3 for <67611@debbugs.gnu.org>; Thu, 08 Feb 2024 05:42:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707399721; x=1708004521; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ec3wSSkmiPAUnZOa70AhS65eXBsbz2tJCtQRR6fUSxo=; b=m9C3fcabxYb5fGQRteHxsSQC1r5A+Mc4raSTiMWCfvvsHCbTsnlEtvWt5fMjxX9WWv 6QGgZPY9oupmmmdkhICPx2hDTNT/zJruFqE5zQ3DWD4GI0w5XyejSeSxJK9QKxckmao7 t92VYshdqMEq8qGrcn6eJl/l3iOjtNpxLbtn6JRCWAt6OuyeSlm9vT2JRbjcETG1dE1v dLVWUcY5L6+PXr4jxCtxDGGg6Jdl5wKyRIstBQgvB11eee35aYowIxpHRkdVTiDF1LV4 UIYPVwxNaq5COBHxvMUJDdlF0aT0FkFaJvMPh1FiLhV7XSBbIhjLn0+alvr71ewuqjt2 gGJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707399721; x=1708004521; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ec3wSSkmiPAUnZOa70AhS65eXBsbz2tJCtQRR6fUSxo=; b=v2QYNOuoVN15eMKvpdkMzJkmMT4g7RPD7nI0JE641ZPBJ9mlIsA7AWx0DGeK82E+CK M7aEkeaPfyZRLmi4OMhpct1cwDlfWYj6fLjWAo/P9k3KEilVL9MWFQvtYDP2cBi4PBCw 5/8hJUOV5TO5tMjkXmZIfomA7Uf4WjB3fGLXeT3ByQE1tVk0Q5NuNEDwjL8EIKU0LGQw L2JU+ZRNwbg6Nix+U3kQMiOQa6XJp92sm4Rd1DqqS3306Yjuu1k4zcnt8cxgzwDWDusK niTUopv7zItm3PEfzF/kGB9PAG2qirhtko1C1fk68yHgaP9jwC1m7QyjUtEqe0XGmV/0 zAQA== X-Gm-Message-State: AOJu0YwWCiSge9xuC+xKv0QUGfEfD+75zcL3B1yL1fhHU2EDJM+r253I a8iLVQdd8C8Ln9R7BehkjWtV9tUoHPA/YLy7eb2WQ/ORpx9SDQu+ZahlmzqgU9a0AQwk/ImzVrn 8xYpOOuKVzTk6G2Kph8/pdcT2F5I= X-Google-Smtp-Source: AGHT+IFY6O9spqStWQMkqHlI+srcJy0ZkkEuMHiRS5iWJYp8P4rGUJDdcRftf437OuUhBJUkKBMEiCVttbKYzR4l1r4= X-Received: by 2002:ac2:43b7:0:b0:511:6fe4:efdd with SMTP id t23-20020ac243b7000000b005116fe4efddmr1041983lfl.5.1707399720723; Thu, 08 Feb 2024 05:42:00 -0800 (PST) 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:279629 Archived-At: On Thu, Feb 8, 2024 at 3:49=E2=80=AFAM Richard Stallman wrote= : > > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > > Could you tell me more concretely what this proposed feature would > > > look like in use? Perhaps with an example including context? > examples separatrly. It's far more helpful to send an example than to > say, "Look through the patch for some." You do this very often where you ask someone to summarize or explain context just for you. That's perfectly fine, you're polite and not generally imposing. But since we're all busy individuals, I also think it's fine to point out that what you're looking for is close by. > > (pcase some-mistery-object > > ((cl-arglist (42 &key a b c)) ; this proposal > > (message "Oh, it starts it 42 and has c=3D%s" c)) > > (`(,_ ,x ,_) > > (message "Boring three-element list with middle %s" x)) > > (`[,_ ,x ,_] > > (message "Fancy vector with middle %s" x)) > > ((franklinboing (nixneez)) ; my data-structure > > (message "This franklinboing has some nice nixneez %s=3D" nizneez= ))) > > Thanks. Now I understand what your extension would be. This is very similar from what you find in the patch in the form of ert tes= ts. Also it's not my extension. Thanks, Jo=C3=A3o