From unknown Mon Aug 18 21:28:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#69270 <69270@debbugs.gnu.org> To: bug#69270 <69270@debbugs.gnu.org> Subject: Status: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning Reply-To: bug#69270 <69270@debbugs.gnu.org> Date: Tue, 19 Aug 2025 04:28:05 +0000 retitle 69270 29.1; transient.el: Using `transient-define-prefix' with a la= mbda command results in warning reassign 69270 emacs submitter 69270 Fadi Moukayed severity 69270 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 06:37:11 2024 Received: (at submit) by debbugs.gnu.org; 19 Feb 2024 11:37:11 +0000 Received: from localhost ([127.0.0.1]:40490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc1xN-0005OK-2G for submit@debbugs.gnu.org; Mon, 19 Feb 2024 06:37:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:40058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc19y-0003ks-Pp for submit@debbugs.gnu.org; Mon, 19 Feb 2024 05:46:10 -0500 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 1rc19d-00032P-De for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 05:45:45 -0500 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc19Z-0000Wu-6j for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 05:45:45 -0500 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a3e706f50beso131292366b.0 for ; Mon, 19 Feb 2024 02:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708339537; x=1708944337; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6fVd+NBN6LyHI0hNKNL2uZzRIn1lHweAmIR0ox9xQO4=; b=jT0kp+qKbYpFW53Ys5N7zRs25IJYj8QC1+DkRhtJORKqZEdFSFWBMTYHKDf541A+mB 6apdjDrRsFQ1gmlPlqE7ngApYy8iJbYS0Ky+AuXVSrv1rydybY30TkXjcnS0gpXvLVg/ dx6dKXjwJiw9D8UUIg+v+VpaYnNDr5yARmKn0/aiXk+SOQnd49Mq8lfeuz/J6/YopNo2 nQiEDaupYqxD3BKxfFKgi9kJ5ASb29mMHWnvdpTJrvBYBBl1oTkuqLCqTdpDVnCUfj/Z EY2Qf+F+CV0cFvUfd6ef5cL/TzxURa+SeNccKnPCcYHizH3HN4idmD6bnuUAiir+hTrN hiXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708339537; x=1708944337; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6fVd+NBN6LyHI0hNKNL2uZzRIn1lHweAmIR0ox9xQO4=; b=oyP3FuPPLfTCBxiNNa3r3BayqumfQ04PV6GgQLh1nG81FmSoVJUDQeIFmszjW1qBt/ uXWYRDT6mESLJzcP7VsvUOnIrMFMWJ+j8/J6oR4ad4c0KsESPG/p7CwUJEsf2Y3QaA4h JhJRYpVtSxDSlBBJ719lHK2Cutx8o4IDoiwiOUFRBxdg3S2pKcxTXCoE6pv7wv4oRvHB C1BWaQc1IwYO9UlX0mg3NaOf1NYyL7CtJa2XdJS56tvjgrG+ih0gy1eJ+lTfrrQVviji 6LsTlQn9Th0Hu6GdXDL35nCD8hPCm9oC+BB4AOpOTfYgGQhiBmDb9ikwZ65kCLDw4nKY TCbw== X-Gm-Message-State: AOJu0YwmrTQvK2tx821WwshEJqCTtx58dbhoNtx3s29MsyeR7W7rWowY PBo6lANv5jQGudoFUAyCgs2fAZ34/sweHr6bKslax5n8Rf0fTIFisfNn4B4bk3TpSqN4yICaJ3/ QN56zZTxcCFlWaP5ttnH4pDgC5LZuqEVHZoQ= X-Google-Smtp-Source: AGHT+IHCLBJCu9KQu5RLNLofG/HZ/4BkZ6ti+pCbmvkv8Ca8XpYJbVv88SgKjFxdPyeZIknThKFY44RIHOoShxbBejA= X-Received: by 2002:a17:906:1718:b0:a3c:e81a:9c35 with SMTP id c24-20020a170906171800b00a3ce81a9c35mr8620651eje.73.1708339536678; Mon, 19 Feb 2024 02:45:36 -0800 (PST) MIME-Version: 1.0 From: Fadi Moukayed Date: Mon, 19 Feb 2024 11:45:25 +0100 Message-ID: Subject: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=smfadi@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 19 Feb 2024 06:37:04 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Mentioned on the #emacs channel (libera). As per https://www.gnu.org/software/emacs/manual/html_mono/transient.html#S= uffix-Specifications =E2=80=93 it is mentioned that "COMMAND can also be a lambda expression." However, evaluating the form (even on an Emacs instance started with "emacs= -Q") (transient-define-prefix my-test-transient () ["Heading" ("a" "choice a" (lambda () (interactive)))]) Results in the following warning being printed on the *Messages* buffer: Warning: (lambda nil \...) quoted with ' rather than with #' Attempting to hashquote the lambda as in: (transient-define-prefix my-test-transient () ["Heading" ("a" "choice a" (lambda () (interactive)))]) ... as suggested by some on #emacs results in an error when evaluating. At this point, I am not sure if this is an error in documentation of transient.el, or an error in the macro definition of the `transient-define-prefix' macro itself, or if the warning is superfluous and whether it should be ignored. As I'm unsure whether this is a bug or not, I'm erring on the side of safety and reporting it to bring it to attention. In GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-12-10 built on lcy02-amd64-098 Repository revision: 28fb02492c2444c5976eb53fd6f9badfe54f4ea1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12201001 System Description: Ubuntu 22.04.4 LTS Configured using: 'configure --prefix=3D/snap/emacs/current/usr --with-x-toolkit=3Dgtk3 --without-xaw3d --with-modules --with-cairo --with-native-compilation=3Daot --with-xinput2 --with-tree-sitter --with-json 'CFLAGS=3D-isystem/build/emacs/parts/emacs/install/usr/include -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -isystem/build/emacs/stage/usr/include -O2' 'CPPFLAGS=3D-isystem/build/emacs/parts/emacs/install/usr/include -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -isystem/build/emacs/stage/usr/include' 'LDFLAGS=3D-L/build/emacs/parts/emacs/install/lib -L/build/emacs/parts/emacs/install/usr/lib -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu -L/build/emacs/stage/usr/lib'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: electric-pair-mode: t display-line-numbers-mode: t erc-ring-mode: t erc-notifications-mode: t erc-netsplit-mode: t erc-menu-mode: t erc-list-mode: t erc-irccontrols-mode: t erc-keep-place-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t erc-scrolltobottom-mode: t erc-imenu-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-bufbar-mode: t erc-track-mode: t erc-match-mode: t erc-autojoin-mode: t recentf-mode: t pixel-scroll-precision-mode: t minibuffer-depth-indicate-mode: t global-whitespace-mode: t global-goto-address-mode: t goto-address-mode: t global-auto-revert-mode: t fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t erc-networks-mode: t desktop-save-mode: t windmove-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 19 08:05:58 2024 Received: (at 69270) by debbugs.gnu.org; 19 Feb 2024 13:05:58 +0000 Received: from localhost ([127.0.0.1]:40688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc3LJ-0007fy-04 for submit@debbugs.gnu.org; Mon, 19 Feb 2024 08:05:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc3LF-0007fj-Bq for 69270@debbugs.gnu.org; Mon, 19 Feb 2024 08:05:54 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc3Kn-0002fs-OC; Mon, 19 Feb 2024 08:05:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=GLENV2kh9WXYSbRyxe1nHyMqkopc9nR1nhFe7hSp6HE=; b=L89JLwfTUsQe3immvlk+ KeznvezdhXgb2SP9r9ySDIob2k99ic/6q0a17uJtQsJoQ6s0uk0acH7px+opvo8eQxf4mUlNIF9bU fv5i1COHiAzycPZsSWPEfBjTLv34yBdLoJiwb/iguYuMTuUd/SlHJbPiczGGJGSv5Qi9HjvOxmpU2 Uf/yxTV1QU9z/eyNp+3oEfrSVKUqGkuhT8ipV7BP/ZXdU9x1zAPe7MvcmG9Riz4c++dsV+IuR8uF+ nLnJntwSXq+X6sr3Py0JwqZgaBK0hwT+tTvfYH6pRA8POZ/Jabl0t3WzyDlSlTJ5ygGmRDUR5G4me +WlRSDnlyhl0Fg==; Date: Mon, 19 Feb 2024 15:05:23 +0200 Message-Id: <86r0h8ppt8.fsf@gnu.org> From: Eli Zaretskii To: Fadi Moukayed , jonas@bernoul.li In-Reply-To: (message from Fadi Moukayed on Mon, 19 Feb 2024 11:45:25 +0100) Subject: Re: bug#69270: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 69270 Cc: 69270@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) > From: Fadi Moukayed > Date: Mon, 19 Feb 2024 11:45:25 +0100 > > Mentioned on the #emacs channel (libera). > > As per https://www.gnu.org/software/emacs/manual/html_mono/transient.html#Suffix-Specifications > – it is mentioned that "COMMAND can also be a lambda expression." > > However, evaluating the form (even on an Emacs instance started with "emacs -Q") > > (transient-define-prefix my-test-transient () ["Heading" ("a" > "choice a" (lambda () (interactive)))]) > > Results in the following warning being printed on the *Messages* buffer: > > Warning: (lambda nil \...) quoted with ' rather than with #' > > Attempting to hashquote the lambda as in: > > (transient-define-prefix my-test-transient () ["Heading" ("a" > "choice a" (lambda () (interactive)))]) > > ... as suggested by some on #emacs results in an error when evaluating. > > At this point, I am not sure if this is an error in documentation of > transient.el, or an error in the macro definition of the > `transient-define-prefix' macro itself, or if the warning is > superfluous and whether it should be ignored. As I'm unsure whether > this is a bug or not, I'm erring on the side of safety and reporting > it to bring it to attention. Jonas, could you please look into this? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 22:22:07 2025 Received: (at 69270) by debbugs.gnu.org; 1 Mar 2025 03:22:07 +0000 Received: from localhost ([127.0.0.1]:57177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toDQU-0008ET-Qh for submit@debbugs.gnu.org; Fri, 28 Feb 2025 22:22:07 -0500 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:48329) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1toDQS-0008DE-2U for 69270@debbugs.gnu.org; Fri, 28 Feb 2025 22:22:04 -0500 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5dedae49c63so5001548a12.0 for <69270@debbugs.gnu.org>; Fri, 28 Feb 2025 19:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740799318; x=1741404118; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=XWWQYqlO2U+f2XuNsHxctEnz+b+I6RdmDZg6wjEcdHs=; b=E4fsMzccujhE6RtKvzM2+bmlKE3pd3g3jSsqCvoJGlmytnfQCBYUJsVaaESUMnmoQ7 T1zHo2yhjAT9cFjtHQDYYZ4UrTNUw2sq4bxn7D6Xdozc6kvTR9R9Fppos1LHQKZNwpCZ orVjdLIZBUW8g6/fAmHATYjqnfZPa23TWCGGT9UInm0bKsEEyArTGIW8ybEMFX9Ul4ah 5Pd7TeSLUlq/OYQ5r53Wm5v0IHHXYH+EVOjaKLeoKp+7BtC6E6ygvrQH6lpzoYgVfhro rx+6s9tcOuEh90tWsB/qdL4ExoJgIxbjkjqvuNwjdkO2wyxfKwtzer9tecAHi48VL7iS kNPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740799318; x=1741404118; h=content-transfer-encoding:cc: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=XWWQYqlO2U+f2XuNsHxctEnz+b+I6RdmDZg6wjEcdHs=; b=gIAUFs8vb7xp+IJKfNtLy4iQp7gCHrgvlXCjzD0sDr29ixuU7naZPOn+gX7a+34KzT f4JRP8XdApqiK+ZqMZSFO168BX1rmRrSK2N/7lnhs1mKocGc2xckuReeiiNfzL9UOiGW 0lR3ZWaVZBdtMwvrarT/zAOVl82sxPMnSAmke6IIv2PTxeGGa8iTC+ErgQvSCWsDk/Ih LLR3Soz0yFPS6/7XcYilP9OqPSXJst+zG5Z/fhIqc2Qk4yKv6SrUdx3kcFKL2RBQyMHI jrgMXFGh9RpMhyKcPOi+V6fn+r6eW9mDhWYEj1lu7LG6bu905yCHTQWzG03Eaej2KuL/ KnLw== X-Forwarded-Encrypted: i=1; AJvYcCVkVHxyQHvATSCkMP0Vw9sffq4vCWL+lN/5q5ag0ybiDAM7OjhORhmUjr7iY3zEQupHEdEzgA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxzYJbNQ4uv+o41kUFnY+Kn3fV7MB1xSxqEfGPDmzJ9Ea17uME8 E6eJsSB+gS2dT0KZq2ZEf999ucR9EKukWzqi9tBVmQEzElVzZ9iZl8+O9VInPYriO08OpXPzBaI w16mleuLjCXN0oL6T0BmZdIbbBy8= X-Gm-Gg: ASbGncuB64F92MeNBQ29cPf11BNTRksGA//IQ0kTlku39ViaQmiWf79kGY7G/jhG1AQ pgRYc+7xjBxf4WNXQamO42tYDGt6ZvnDK8LObuIqjXPmuR1DU7sb/ILLpU9v5Apom0qtZyJPyZ7 7MpzTv8GX0cjsPwhcH9RVrwQRCvuQ= X-Google-Smtp-Source: AGHT+IEwmgFYQP1Fhq5HfQEKo+Mbzzi10MD71+CUr2Q9p8efGzuxqoXTmQGFORXZostxDsL3Df8UNx1x8lf1Fj+ZCnk= X-Received: by 2002:a05:6402:2711:b0:5de:dfd0:9d22 with SMTP id 4fb4d7f45d1cf-5e4d6b6ebf3mr5432801a12.22.1740799318030; Fri, 28 Feb 2025 19:21:58 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Feb 2025 19:21:57 -0800 From: Stefan Kangas In-Reply-To: <86r0h8ppt8.fsf@gnu.org> References: <86r0h8ppt8.fsf@gnu.org> MIME-Version: 1.0 Date: Fri, 28 Feb 2025 19:21:57 -0800 X-Gm-Features: AQ5f1Jp0M_FWj8KlzvxpvkPzWqngir4V1ImBie-_IVoQjsdSw69Y0l6U-Q9aCVs Message-ID: Subject: Re: bug#69270: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 69270 Cc: Fadi Moukayed , jonas@bernoul.li, 69270@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Fadi Moukayed >> Date: Mon, 19 Feb 2024 11:45:25 +0100 >> >> Mentioned on the #emacs channel (libera). >> >> As per https://www.gnu.org/software/emacs/manual/html_mono/transient.htm= l#Suffix-Specifications >> =E2=80=93 it is mentioned that "COMMAND can also be a lambda expression.= " >> >> However, evaluating the form (even on an Emacs instance started with "em= acs -Q") >> >> (transient-define-prefix my-test-transient () ["Heading" ("a" >> "choice a" (lambda () (interactive)))]) >> >> Results in the following warning being printed on the *Messages* buffer: >> >> Warning: (lambda nil \...) quoted with ' rather than with #' >> >> Attempting to hashquote the lambda as in: >> >> (transient-define-prefix my-test-transient () ["Heading" ("a" >> "choice a" (lambda () (interactive)))]) >> >> ... as suggested by some on #emacs results in an error when evaluating. >> >> At this point, I am not sure if this is an error in documentation of >> transient.el, or an error in the macro definition of the >> `transient-define-prefix' macro itself, or if the warning is >> superfluous and whether it should be ignored. As I'm unsure whether >> this is a bug or not, I'm erring on the side of safety and reporting >> it to bring it to attention. > > Jonas, could you please look into this? Friendly ping. Jonas, WDYT? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 22:22:18 2025 Received: (at control) by debbugs.gnu.org; 1 Mar 2025 03:22:18 +0000 Received: from localhost ([127.0.0.1]:57181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toDQf-0008Ex-LH for submit@debbugs.gnu.org; Fri, 28 Feb 2025 22:22:18 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:53350) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1toDQZ-0008EA-Tm for control@debbugs.gnu.org; Fri, 28 Feb 2025 22:22:12 -0500 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-abf3cf3d142so136827266b.2 for ; Fri, 28 Feb 2025 19:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740799324; x=1741404124; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=AsUJo50npcl7b9e9zL7Fpgx38yYU2pXLRdsHDtbrKAM=; b=FjSUMW2DAehGvHVl79nO1BD/57j1S4El093fqRjxFotCfak5Fpd1jeTMUtZoz2M6FT uyx1XBHWttEc0ZRFsSoA6qISLFMqwGNHe/XLOztCvDQwV594q4BwpBHK0YMj4ybuBfKF sW9tc6o3qrJjIXudRIz+TgAKcSa+Kn5YzOEiiD6kPz8Z5o3DwkKUHPRPEM2OYhNVX/LL nK75Xb3YehkxKzT8z18Sn6Hzgd+CPBzYb+zCKk/hUluvDoXiM7Ve5OunroQwcX/nQxM9 Eq+NO642YXDW3DAD7D000jwOPwdtFuJE59XpNobCrEEWDD5hL/4GxhquV0m77UT68VYf zf3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740799324; x=1741404124; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AsUJo50npcl7b9e9zL7Fpgx38yYU2pXLRdsHDtbrKAM=; b=BoTmusm9jx8HmrIUe7xGnp/nX3M06qBS+o5yEsDm06XY0M6uZZSI6drYiFpcRHmYaN 9kp8mwvN92jYOhKAe4eMaF5IprfxZ2rGIHaJpOeF30OHsxOErcrFDinHw3yQaMjnhDFR PcD6T9rV05LWek4ZaCaQSZnqeNKxN5q957O1U3LqjqLo0YnnsPj7XQRvuprqnHdsoo9C UclfqsaVcysyi32GSs4xjUxBB2xjnPupcKDMiBS7apFe043Idd2q+LgYZ8ZGfcLTzF6h IBEiKQw2wWDEgPmWvR+lyRXM+jGaTACzj+NEnN+W26+IqGxoixn5shA2AOdl/3Azz4iN +lbQ== X-Gm-Message-State: AOJu0YybhnG8k6atXcvM9plBVoQGDeD7faPk4BY9C9og/waLi2KOd1q8 y8DyiAPGfILoHL3s6QUK4p8JjHoPXggbVXWX7BDDKKWpO4KAr2K+XUW0Ulj7IZwprmOrIMCxqEF 9VFDSAaxOuP72dCk4RHIZGJBU1+Mcqlv/HAE= X-Gm-Gg: ASbGncskED+GzcosBlgovNlbFdpafwldKJBU1lE+YMclxPajDkAVQcsoA+HXW/S33sf PNVHcww+3yWpOaj5ZbVXfbXTNwjnNowSBbUciiIEfAlnWfIvqcBU9LU19fBV+GMY1xcyfF22Pmx TwxOzDJVZ35nhkvI5XtnBJkdm+ygw= X-Google-Smtp-Source: AGHT+IExu8HnqogreRKHh/OC+ezaCZGpqoF0nYxYkFj5sDh+sG1TtbR9+3PRisQ4lxaktV8Bobq3SyCEq0RiG283EEM= X-Received: by 2002:a05:6402:2711:b0:5e0:49e4:2180 with SMTP id 4fb4d7f45d1cf-5e4d6b4bc0dmr12229168a12.25.1740799324508; Fri, 28 Feb 2025 19:22:04 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Feb 2025 19:22:04 -0800 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 28 Feb 2025 19:22:04 -0800 X-Gm-Features: AQ5f1JpcXoET_XieQYkPWLoBujfW2MKyWCERtw2LWJRczthsGKjjhq0_lkxqSv4 Message-ID: Subject: control message for bug #69270 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 69270 minor quit From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 10:45:14 2025 Received: (at 69270) by debbugs.gnu.org; 1 Mar 2025 15:45:15 +0000 Received: from localhost ([127.0.0.1]:41592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toP1d-0005Gj-BG for submit@debbugs.gnu.org; Sat, 01 Mar 2025 10:45:14 -0500 Received: from mail.hostpark.net ([212.243.197.30]:44158) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1toP1a-0005EY-LU for 69270@debbugs.gnu.org; Sat, 01 Mar 2025 10:45:11 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 5CDEB164AE; Sat, 1 Mar 2025 16:45:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:references:in-reply-to:subject:subject :from:from; s=sel2011a; t=1740843908; bh=LHoWQkcxX5WQ3JQKLplQ09+ 0doWlryaUx4wFw/Ghets=; b=qM5ta+y+fMVcBVNwsS+aHTg/s6Q0z1iBBP9ej2H YO6ENbNbpCljk888wUZ8u2WLCsnhCaW+ryXCBzcR6IWNMfSfqTMWZkGCmrIAndyh 8KXyRiYrJsi37BXB32e52z1NxaYZqKfCLCIDJxEw2j3efyHasePfkPShzlajBFg2 fIeU= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id eyYEwlm8cFPD; Sat, 1 Mar 2025 16:45:08 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 7B69616466; Sat, 1 Mar 2025 16:45:07 +0100 (CET) From: Jonas Bernoulli To: Eli Zaretskii , Fadi Moukayed Subject: Re: bug#69270: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning In-Reply-To: <86r0h8ppt8.fsf@gnu.org> References: <86r0h8ppt8.fsf@gnu.org> Date: Sat, 01 Mar 2025 16:45:05 +0100 Message-ID: <87ikos92m6.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69270 Cc: 69270@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Jonas, could you please look into this? This is an issue in the Transient version bundled with Emacs 29.1. It has been fixed since. I don't remember when exactly it was fixed. Maybe other 29.* releases are affected too, 30.1 is not. Users who are bothered by this warning, who also want to stay on a 29.* release, can install Transient from GNU ELPA. Alternatively they can ignore this warning; it points at an actual issue, but it is harmless. (They should update to recent Transient release anyway. There *are* serious issues in past Transient releases, which are distributed with past Emacs releases, but the warning at hand is not that. I do make sure to keep current Transient release compatible with Emacs releases starting with 28.1, the first release that bundled Transient, so it is safe to use a recent Transient with an old Emacs.) >> From: Fadi Moukayed >> Date: Mon, 19 Feb 2024 11:45:25 +0100 >>=20 >> Mentioned on the #emacs channel (libera). >>=20 >> As per https://www.gnu.org/software/emacs/manual/html_mono/transient.htm= l#Suffix-Specifications >> =E2=80=93 it is mentioned that "COMMAND can also be a lambda expression." >>=20 >> However, evaluating the form (even on an Emacs instance started with "em= acs -Q") >>=20 >> (transient-define-prefix my-test-transient () ["Heading" ("a" >> "choice a" (lambda () (interactive)))]) >>=20 >> Results in the following warning being printed on the *Messages* buffer: >>=20 >> Warning: (lambda nil \...) quoted with ' rather than with #' Back in the 29.1 days, such embedded lambda were wrongly quoted by the code that turned the group specification into actual code. As a result the lambda were not compiled and instead evaluated every time the lambda is called. The lambda still worked correctly but was a teeny tiny bit less efficient. Of course it is something that should be fixed (it is no just immeasurably slower, but wrong=E2=84=A2), and by now that has happe= ned. The byte-compiler noticed the issue and warns about this harmless, but embarrassing issue. >> Attempting to hashquote the lambda as in: >>=20 >> (transient-define-prefix my-test-transient () ["Heading" ("a" >> "choice a" (lambda () (interactive)))]) >>=20 >> ... as suggested by some on #emacs results in an error when >> evaluating. Yes, that does not work here. The evaluation rules are a bit different in these group specification vectors than elsewhere. To an extend, I now regret having gone that way, but it is too late to change that now. If I were to start over, I might require explicit unquoting: (transient-define-prefix my-test-transient () `["Heading" ("a" "choice a" ,(lambda () (interactive)))]) Alas, that is not how it works now. This is a vector, so nothing in it has to be quoted. (If you do quote something, as you have attempted, that doesn't work, because you end up with something that is quoted twice.) The embedded lambda *should* be evaluated, so in more recent Transient versions, when the prefix is defined, we look for lambda in these vectors, and make special arrangements for those to be treated as code and not data. Back in the 29.1 days that wasn't done yet, and that is what the warning is about. >> At this point, I am not sure if this is an error in documentation of >> transient.el, or an error in the macro definition of the >> `transient-define-prefix' macro itself, or if the warning is >> superfluous and whether it should be ignored. As I'm unsure whether >> this is a bug or not, I'm erring on the side of safety and reporting >> it to bring it to attention. It is harmless and can be ignored. This bug report can be closed. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 10:52:46 2025 Received: (at 69270-done) by debbugs.gnu.org; 1 Mar 2025 15:52:46 +0000 Received: from localhost ([127.0.0.1]:41685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toP8v-00061L-SY for submit@debbugs.gnu.org; Sat, 01 Mar 2025 10:52:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49264) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1toP8t-00060e-M9 for 69270-done@debbugs.gnu.org; Sat, 01 Mar 2025 10:52:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1toP8n-0004mL-19; Sat, 01 Mar 2025 10:52:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Ntmq8yEAKG4nX9heZnIV6IPggnG7F8QYgLga9O+gx9Y=; b=aTkzaWYhjqTN8VF/tCPY 0Kb+lg6mcDSpLc7SkyIbWEILQCQFkLHQ0VD4N9U2gqZjOqx/1bOM5mfoC1sTtDm+IawQPRERS/Xk2 e07wGasgP3SimaAXuKASoY7Er1U6jujAfbdlGAAZYW6lH7aAsZUaeZSQ0AzC+rw0P4aVO/8L8yQhe vnDE3SoZqaEjT6Yd537dmIr4teRshsqeVW0wsLlMAez6ftGsaA9DqU/vEKu2yDDYo0tcRfmHs9XH6 hlLTVRVU6M85gllu2uTgT/MEwF0mKz0aVAOq4Y+Cth2Twr/3Cfd84i0BqsPCmmLYVheC/303AdszP sdIeNUvDYe7tRQ==; Date: Sat, 01 Mar 2025 17:52:33 +0200 Message-Id: <86wmd8oiim.fsf@gnu.org> From: Eli Zaretskii To: Jonas Bernoulli In-Reply-To: <87ikos92m6.fsf@bernoul.li> (message from Jonas Bernoulli on Sat, 01 Mar 2025 16:45:05 +0100) Subject: Re: bug#69270: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning References: <86r0h8ppt8.fsf@gnu.org> <87ikos92m6.fsf@bernoul.li> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69270-done Cc: smfadi@gmail.com, 69270-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jonas Bernoulli > Cc: 69270@debbugs.gnu.org > Date: Sat, 01 Mar 2025 16:45:05 +0100 > > > Jonas, could you please look into this? > > This is an issue in the Transient version bundled with Emacs 29.1. > It has been fixed since. I don't remember when exactly it was fixed. > Maybe other 29.* releases are affected too, 30.1 is not. > > Users who are bothered by this warning, who also want to stay on a 29.* > release, can install Transient from GNU ELPA. Alternatively they can > ignore this warning; it points at an actual issue, but it is harmless. > > (They should update to recent Transient release anyway. There *are* > serious issues in past Transient releases, which are distributed with > past Emacs releases, but the warning at hand is not that. > > I do make sure to keep current Transient release compatible with Emacs > releases starting with 28.1, the first release that bundled Transient, > so it is safe to use a recent Transient with an old Emacs.) > > >> From: Fadi Moukayed > >> Date: Mon, 19 Feb 2024 11:45:25 +0100 > >> > >> Mentioned on the #emacs channel (libera). > >> > >> As per https://www.gnu.org/software/emacs/manual/html_mono/transient.html#Suffix-Specifications > >> – it is mentioned that "COMMAND can also be a lambda expression." > >> > >> However, evaluating the form (even on an Emacs instance started with "emacs -Q") > >> > >> (transient-define-prefix my-test-transient () ["Heading" ("a" > >> "choice a" (lambda () (interactive)))]) > >> > >> Results in the following warning being printed on the *Messages* buffer: > >> > >> Warning: (lambda nil \...) quoted with ' rather than with #' > > Back in the 29.1 days, such embedded lambda were wrongly quoted by the > code that turned the group specification into actual code. As a result > the lambda were not compiled and instead evaluated every time the lambda > is called. The lambda still worked correctly but was a teeny tiny bit > less efficient. Of course it is something that should be fixed (it is > no just immeasurably slower, but wrong™), and by now that has happened. > > The byte-compiler noticed the issue and warns about this harmless, but > embarrassing issue. > > >> Attempting to hashquote the lambda as in: > >> > >> (transient-define-prefix my-test-transient () ["Heading" ("a" > >> "choice a" (lambda () (interactive)))]) > >> > >> ... as suggested by some on #emacs results in an error when > >> evaluating. > > Yes, that does not work here. The evaluation rules are a bit different > in these group specification vectors than elsewhere. To an extend, I > now regret having gone that way, but it is too late to change that now. > > If I were to start over, I might require explicit unquoting: > > (transient-define-prefix my-test-transient () > `["Heading" > ("a" "choice a" ,(lambda () (interactive)))]) > > Alas, that is not how it works now. This is a vector, so nothing in it > has to be quoted. (If you do quote something, as you have attempted, > that doesn't work, because you end up with something that is quoted > twice.) > > The embedded lambda *should* be evaluated, so in more recent Transient > versions, when the prefix is defined, we look for lambda in these > vectors, and make special arrangements for those to be treated as code > and not data. > > Back in the 29.1 days that wasn't done yet, and that is what the warning > is about. > > >> At this point, I am not sure if this is an error in documentation of > >> transient.el, or an error in the macro definition of the > >> `transient-define-prefix' macro itself, or if the warning is > >> superfluous and whether it should be ignored. As I'm unsure whether > >> this is a bug or not, I'm erring on the side of safety and reporting > >> it to bring it to attention. > > It is harmless and can be ignored. > > This bug report can be closed. Thanks, done. From unknown Mon Aug 18 21:28:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 30 Mar 2025 11:24:34 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator