GNU bug report logs -
#61505
[PATCH] Handle anonymous commands in C-h K
Previous Next
Reported by: Eshel Yaron <me <at> eshelyaron.com>
Date: Tue, 14 Feb 2023 07:40:02 UTC
Severity: wishlist
Tags: patch
Fixed in version 30.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61505 in the body.
You can then email your comments to 61505 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61505
; Package
emacs
.
(Tue, 14 Feb 2023 07:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eshel Yaron <me <at> eshelyaron.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 14 Feb 2023 07:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
Currently C-h K (Info-goto-emacs-key-command-node) throws an error when
used on anonymous commands, for example:
1. emacs -Q
2. Evaluate this form:
(keymap-global-set "C-c m"
(lambda ()
(interactive)
(message "foo")))
3. Type C-h K C-c m
4. Get this error:
Info-goto-emacs-command-node: Wrong type argument: symbolp, (closure (t) nil (interactive) (message "foo"))
This patch makes Info-goto-emacs-key-command-node detect and handle such
cases by printing an informative message instead of calling
Info-goto-emacs-command-node.
In GNU Emacs 30.0.50 (build 6, x86_64-apple-darwin22.2.0, NS
appkit-2299.30 Version 13.1 (Build 22C65)) of 2023-02-11 built on
esmac.lan
Repository revision: 838415525bd4e77a79e18af8e4f01ed004196c71
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2299
System Description: macOS 13.1
Configured using:
'configure --with-native-compilation --with-json --with-xwidgets
--with-mailutils --with-imagemagick --without-dbus'
[0001-Handle-anonymous-commands-in-C-h-K.patch (text/patch, attachment)]
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 04 Sep 2023 09:02:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
You have taken responsibility.
(Wed, 10 Jan 2024 22:52:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eshel Yaron <me <at> eshelyaron.com>
:
bug acknowledged by developer.
(Wed, 10 Jan 2024 22:52:01 GMT)
Full text and
rfc822 format available.
Message #12 received at 61505-done <at> debbugs.gnu.org (full text, mbox):
Version: 30.1
Eshel Yaron <me <at> eshelyaron.com> writes:
> Currently C-h K (Info-goto-emacs-key-command-node) throws an error when
> used on anonymous commands, for example:
>
> 1. emacs -Q
> 2. Evaluate this form:
> (keymap-global-set "C-c m"
> (lambda ()
> (interactive)
> (message "foo")))
> 3. Type C-h K C-c m
> 4. Get this error:
> Info-goto-emacs-command-node: Wrong type argument: symbolp, (closure (t) nil (interactive) (message "foo"))
>
> This patch makes Info-goto-emacs-key-command-node detect and handle such
> cases by printing an informative message instead of calling
> Info-goto-emacs-command-node.
Thanks, makes sense to me, so I installed it on master (9eed00c8e5a).
I changed the message to be slightly more clear in a followup commit to
look like this:
C-c m invokes an anonymous command defined with ‘lambda’
I also made it use `substitute-command-keys'.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 08 Feb 2024 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 92 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.