From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69270: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning Date: Mon, 19 Feb 2024 15:05:23 +0200 Message-ID: <86r0h8ppt8.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69270@debbugs.gnu.org To: Fadi Moukayed , jonas@bernoul.li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 19 14:06:05 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 1rc3LQ-0008Tx-I8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Feb 2024 14:06:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc3L5-0006wE-Nq; Mon, 19 Feb 2024 08:05:43 -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 1rc3L4-0006un-91 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 08:05:42 -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 1rc3L4-0002nd-0l for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 08:05:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rc3LN-0007gG-RI for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 08:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2024 13:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69270 X-GNU-PR-Package: emacs Original-Received: via spool by 69270-submit@debbugs.gnu.org id=B69270.170834795829515 (code B ref 69270); Mon, 19 Feb 2024 13:06:01 +0000 Original-Received: (at 69270) by debbugs.gnu.org; 19 Feb 2024 13:05:58 +0000 Original-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 Original-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 Original-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==; In-Reply-To: (message from Fadi Moukayed on Mon, 19 Feb 2024 11:45:25 +0100) 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:280262 Archived-At: > 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.