GNU bug report logs -
#76172
31.0.50; C-h f menu-bar-open-mouse signals error
Previous Next
Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Date: Mon, 10 Feb 2025 05:12:02 UTC
Severity: normal
Found in version 31.0.50
Fixed in version 31.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 76172 in the body.
You can then email your comments to 76172 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#76172
; Package
emacs
.
(Mon, 10 Feb 2025 05:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gerd Möllmann <gerd.moellmann <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 10 Feb 2025 05:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
1. emacs -Q -nw
2. C-h f menu-bar-open-mouse RET
=> Wrong type argument: listp, menu-bar-open-mouse
In GNU Emacs 31.0.50 (build 5, aarch64-apple-darwin24.3.0) of 2025-02-10
built on pro2
Repository revision: e9d17e41971c887675d52e1dcee21978d4247130
Repository branch: master
System Description: macOS 15.3
Configured using:
'configure --without-ns --cache-file
/var/folders/1d/k_6t25f94sl83szqbf8gpkrh0000gn/T//config.cache.master
--with-native-compilation=no CC=clang 'CFLAGS=-Wgnu-imaginary-constant
-Wunused-result -g -F
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
-Wno-ignored-attributes -Wno-flag-enum -Wno-missing-method-return-type
-Wno-variadic-macros -Wno-strict-prototypes -Wno-availability
-Wno-nullability-completeness' --prefix=/Users/gerd/.local'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76172
; Package
emacs
.
(Mon, 10 Feb 2025 13:20:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76172 <at> debbugs.gnu.org (full text, mbox):
tags 76172 + patch
thanks
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
> 1. emacs -Q -nw
> 2. C-h f menu-bar-open-mouse RET
>
> => Wrong type argument: listp, menu-bar-open-mouse
It looks like this special case is just not covered. Evaluating
(car (cdr (cdr (assq 'menu-bar global-map))))
leads to
(mouse-1 . menu-bar-open-mouse)
but that has a different form than all other menu bar entries, and the
`(nth 1 ...)` call will obviously not work.
This should fix it:
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 9324cf85454..6112df99850 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -649,7 +649,8 @@ help-fns--insert-menu-bindings
(lambda (entry level)
(when (symbolp map)
(setq map (symbol-function map)))
- (when-let* ((elem (assq entry (cdr map))))
+ (when-let* ((elem (assq entry (cdr map)))
+ (_ (proper-list-p elem)))
(when (> level 0)
(push sep string))
(if (eq (nth 1 elem) 'menu-item)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76172
; Package
emacs
.
(Mon, 10 Feb 2025 13:53:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 76172 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefankangas <at> gmail.com> writes:
> This should fix it:
Thanks, works!
Reply sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
You have taken responsibility.
(Mon, 10 Feb 2025 14:19:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Gerd Möllmann <gerd.moellmann <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 10 Feb 2025 14:19:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 76172-done <at> debbugs.gnu.org (full text, mbox):
Version: 31.1
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> This should fix it:
>
> Thanks, works!
Thanks for testing!
Installed as commit 6a31cbc67fc, and thus closing this bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 11 Mar 2025 11:24:17 GMT)
Full text and
rfc822 format available.
This bug report was last modified 101 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.