From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fadi Moukayed 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 11:45:25 +0100 Message-ID: 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="13564"; mail-complaints-to="usenet@ciao.gmane.io" To: 69270@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 19 12:38:21 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 1rc1yX-0003L0-8K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Feb 2024 12:38:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc1xv-0000E1-E7; Mon, 19 Feb 2024 06:37: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 1rc1xt-0000DW-Sf for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 06:37:41 -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 1rc1xt-0001fw-FY for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 06:37:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rc1yE-0005Pr-Ew for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 06:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Fadi Moukayed Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2024 11:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69270 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170834263120740 (code B ref -1); Mon, 19 Feb 2024 11:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2024 11:37:11 +0000 Original-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 Original-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 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 1rc19d-00032P-De for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 05:45:45 -0500 Original-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 Original-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) 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-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 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:280244 Archived-At: 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