unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Fadi Moukayed <smfadi@gmail.com>, jonas@bernoul.li
Cc: 69270@debbugs.gnu.org
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	[thread overview]
Message-ID: <86r0h8ppt8.fsf@gnu.org> (raw)
In-Reply-To: <CAG_cVu8i=JyNJrP5SEviJGGw+eu4FOkSeZq9pfL5vGL2L2YAtQ@mail.gmail.com> (message from Fadi Moukayed on Mon, 19 Feb 2024 11:45:25 +0100)

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





      reply	other threads:[~2024-02-19 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19 10:45 bug#69270: 29.1; transient.el: Using `transient-define-prefix' with a lambda command results in warning Fadi Moukayed
2024-02-19 13:05 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r0h8ppt8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=69270@debbugs.gnu.org \
    --cc=jonas@bernoul.li \
    --cc=smfadi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).