GNU bug report logs - #44360
28.0.50; describe-map-tree wrong-type-arg error

Previous Next

Package: emacs;

Reported by: No Wayman <iarchivedmywholelife <at> gmail.com>

Date: Sat, 31 Oct 2020 21:12:01 UTC

Severity: normal

Tags: fixed

Merged with 44377

Found in version 28.0.50

Fixed in version 28.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 44360 in the body.
You can then email your comments to 44360 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44360; Package emacs. (Sat, 31 Oct 2020 21:12:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to No Wayman <iarchivedmywholelife <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 31 Oct 2020 21:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: No Wayman <iarchivedmywholelife <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; describe-map-tree wrong-type-arg error
Date: Sat, 31 Oct 2020 17:11:00 -0400

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit,
cairo version 1.17.3, Xaw3d scroll bars)
of 2020-10-30 built on arch
Repository revision: 3e63213a1fef16ffe38a5024a83d8782e98aabe1
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version
11.0.12009000
System Description: Arch Linux

The recent lisp implementation of
`describe-map-tree'/`describe-map'[1]
cause `describe-buffer-bindings' to throw an error in some cases.
Reproduction case:

0. emacs -Q
1. open an ansi-term buffer
2. switch to *scratch* buffer in other window
3. eval:

#+begin_src emacs-lisp
(describe-buffer-bindings (get-buffer "*ansi-term*") [27])
#+end_src

Errors with the following stack trace:

#+begin_src emacs-lisp
Debugger entered--Lisp error: (wrong-type-argument listp
term-send-raw-meta)
 describe-map-tree((keymap #^[nil nil keymap #^^[3 0
 set-mark-command
move-beginning-of-line backward-char mode-specific-command-prefix
delete-char
move-end-of-line forward-char keyboard-quit help-command
indent-for-tab-command
electric-newline-and-maybe-indent kill-line recenter-top-bottom
...] #^^[1 0
#^^[2 0 #^^[3 0 set-mark-command move-beginning-of-line
backward-char
mode-specific-command-prefix delete-char move-end-of-line
forward-char
keyboard-quit help-command indent-for-tab-command
electric-newline-and-maybe-indent kill-line recenter-top-bottom
...]
self-insert-command self-insert-command self-insert-command
self-insert-command
self-insert-command self-insert-command self-insert-command
self-insert-command
self-insert-command self-insert-command self-insert-command
self-insert-command
...] self-insert-command self-insert-command self-insert-command
self-insert-command self-insert-command self-insert-command
self-insert-command
self-insert-command self-insert-command self-insert-command
self-insert-command
self-insert-command ...] self-insert-command self-insert-command
self-insert-command self-insert-command self-insert-command
self-insert-command
self-insert-command self-insert-command self-insert-command ...]
... ... ... ...
... ... ... ... ... ... ... ... ...) t (... ...) [27] "\f\nGlobal
Bindi..." t
nil t nil) describe-buffer-bindings(#<buffer *ansi-term*> [27])
(progn
(describe-buffer-bindings (get-buffer "*ansi-term*") [27]))
eval((progn
(describe-buffer-bindings (get-buffer "*ansi-term*") [27])) t)
elisp--eval-last-sexp(nil) eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil
nil) command-execute(eval-last-sexp)
#+end_src

In addition to this error, the *Message* buffer shows multiple
headers of the form on each call:

#+begin_src emacs-lisp
^L
Input decoding map translations Starting With ESC:
key             binding
---             -------
#+end_src

This breaks the popular which-key package in a couple of ways.
I'm working on a patch for that, but I wanted to check to see if
this behavior is correct before working around it.

[1] possible commits of interest:
647b1c5142 - Translate describe_map to Lisp (12 days ago) <Stefan 
Kangas>
afd31f9e62 - Translate describe_map_tree to Lisp (12 days ago) 
<Stefan Kangas>
dcf9cd47ae - Add new Lisp implementation of 
sbustitute-commands-keys <Stefan Kangas>


Thank you,
Nicholas Vollmer




Merged 44360 44377. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 01 Nov 2020 21:56:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44360; Package emacs. (Sun, 01 Nov 2020 22:01:02 GMT) Full text and rfc822 format available.

Message #10 received at 44360 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: No Wayman <iarchivedmywholelife <at> gmail.com>, 44360 <at> debbugs.gnu.org
Subject: Re: bug#44360: 28.0.50; describe-map-tree wrong-type-arg error
Date: Sun, 1 Nov 2020 14:00:02 -0800
No Wayman <iarchivedmywholelife <at> gmail.com> writes:

> The recent lisp implementation of
> `describe-map-tree'/`describe-map'[1]
> cause `describe-buffer-bindings' to throw an error in some cases.
> Reproduction case:
>
> 0. emacs -Q
> 1. open an ansi-term buffer
> 2. switch to *scratch* buffer in other window
> 3. eval:
>
> #+begin_src emacs-lisp
> (describe-buffer-bindings (get-buffer "*ansi-term*") [27])
> #+end_src

Thank you for the bug report.

I have pushed a fix to master (commit 5ab5504def).  Could you please
test that it works for you?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44360; Package emacs. (Sun, 01 Nov 2020 22:27:01 GMT) Full text and rfc822 format available.

Message #13 received at 44360 <at> debbugs.gnu.org (full text, mbox):

From: No Wayman <iarchivedmywholelife <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 44360 <at> debbugs.gnu.org
Subject: Re: bug#44360: 28.0.50; describe-map-tree wrong-type-arg error
Date: Sun, 01 Nov 2020 17:26:00 -0500
Stefan Kangas <stefankangas <at> gmail.com> writes:

> No Wayman <iarchivedmywholelife <at> gmail.com> writes:
>
>> The recent lisp implementation of
>> `describe-map-tree'/`describe-map'[1]
>> cause `describe-buffer-bindings' to throw an error in some 
>> cases.
>> Reproduction case:
>>
>> 0. emacs -Q
>> 1. open an ansi-term buffer
>> 2. switch to *scratch* buffer in other window
>> 3. eval:
>>
>> #+begin_src emacs-lisp
>> (describe-buffer-bindings (get-buffer "*ansi-term*") [27])
>> #+end_src
>
> Thank you for the bug report.
>
> I have pushed a fix to master (commit 5ab5504def).  Could you 
> please
> test that it works for you?

Looks good on my end.

Thanks, Stefan!

~ Nick




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44360; Package emacs. (Sun, 01 Nov 2020 23:50:01 GMT) Full text and rfc822 format available.

Message #16 received at 44360 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: No Wayman <iarchivedmywholelife <at> gmail.com>
Cc: 44360 <at> debbugs.gnu.org
Subject: Re: bug#44360: 28.0.50; describe-map-tree wrong-type-arg error
Date: Sun, 1 Nov 2020 15:49:15 -0800
tags 44360 fixed
close 44360 28.1
thanks

No Wayman <iarchivedmywholelife <at> gmail.com> writes:

>> I have pushed a fix to master (commit 5ab5504def).  Could you
>> please
>> test that it works for you?
>
> Looks good on my end.
>
> Thanks, Stefan!

Thank you for testing!  I'm therefore closing this bug.




Added tag(s) fixed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 01 Nov 2020 23:50:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 44360 <at> debbugs.gnu.org and No Wayman <iarchivedmywholelife <at> gmail.com> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 01 Nov 2020 23:50:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Nov 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.