GNU bug report logs - #69270
29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Fadi Moukayed <smfadi@HIDDEN>; dated Mon, 19 Feb 2024 11:38:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 69270 <at> debbugs.gnu.org:


Received: (at 69270) by debbugs.gnu.org; 1 Mar 2025 03:22:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 22:22:07 2025
Received: from localhost ([127.0.0.1]:57177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1toDQU-0008ET-Qh
	for submit <at> 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 <stefankangas@HIDDEN>)
 id 1toDQS-0008DE-2U
 for 69270 <at> 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 <at> 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 <stefankangas@HIDDEN>
In-Reply-To: <86r0h8ppt8.fsf@HIDDEN>
References: <CAG_cVu8i=JyNJrP5SEviJGGw+eu4FOkSeZq9pfL5vGL2L2YAtQ@HIDDEN>
 <86r0h8ppt8.fsf@HIDDEN>
MIME-Version: 1.0
Date: Fri, 28 Feb 2025 19:21:57 -0800
X-Gm-Features: AQ5f1Jp0M_FWj8KlzvxpvkPzWqngir4V1ImBie-_IVoQjsdSw69Y0l6U-Q9aCVs
Message-ID: <CADwFkmkYfc7rfGg8sRcGb=w54M8nB4iAm5vSszNH9EnX0Vtrig@HIDDEN>
Subject: Re: bug#69270: 29.1; transient.el: Using `transient-define-prefix'
 with a lambda command results in warning
To: Eli Zaretskii <eliz@HIDDEN>
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 <smfadi@HIDDEN>, jonas@HIDDEN, 69270 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Fadi Moukayed <smfadi@HIDDEN>
>> 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69270; Package emacs. Full text available.

Message received at 69270 <at> debbugs.gnu.org:


Received: (at 69270) by debbugs.gnu.org; 19 Feb 2024 13:05:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 19 08:05:58 2024
Received: from localhost ([127.0.0.1]:40688 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rc3LJ-0007fy-04
	for submit <at> 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 <eliz@HIDDEN>) id 1rc3LF-0007fj-Bq
 for 69270 <at> 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 <eliz@HIDDEN>)
 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@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Fadi Moukayed <smfadi@HIDDEN>, jonas@HIDDEN
In-Reply-To: <CAG_cVu8i=JyNJrP5SEviJGGw+eu4FOkSeZq9pfL5vGL2L2YAtQ@HIDDEN>
 (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: <CAG_cVu8i=JyNJrP5SEviJGGw+eu4FOkSeZq9pfL5vGL2L2YAtQ@HIDDEN>
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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.2 (-----)

> From: Fadi Moukayed <smfadi@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#69270; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Feb 2024 11:37:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 19 06:37:11 2024
Received: from localhost ([127.0.0.1]:40490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rc1xN-0005OK-2G
	for submit <at> 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 <smfadi@HIDDEN>) id 1rc19y-0003ks-Pp
 for submit <at> 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 <smfadi@HIDDEN>) id 1rc19d-00032P-De
 for bug-gnu-emacs@HIDDEN; 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 <smfadi@HIDDEN>) id 1rc19Z-0000Wu-6j
 for bug-gnu-emacs@HIDDEN; Mon, 19 Feb 2024 05:45:45 -0500
Received: by mail-ej1-x62c.google.com with SMTP id
 a640c23a62f3a-a3e706f50beso131292366b.0
 for <bug-gnu-emacs@HIDDEN>; 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 <smfadi@HIDDEN>
Date: Mon, 19 Feb 2024 11:45:25 +0100
Message-ID: <CAG_cVu8i=JyNJrP5SEviJGGw+eu4FOkSeZq9pfL5vGL2L2YAtQ@HIDDEN>
Subject: 29.1; transient.el: Using `transient-define-prefix' with a lambda
 command results in warning
To: bug-gnu-emacs@HIDDEN
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@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Acknowledgement sent to Fadi Moukayed <smfadi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#69270; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 1 Mar 2025 03:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.