From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: No Wayman Newsgroups: gmane.emacs.bugs Subject: bug#44360: 28.0.50; describe-map-tree wrong-type-arg error Date: Sat, 31 Oct 2020 17:11:00 -0400 Message-ID: <87r1perti3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10509"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.6; emacs 28.0.50 To: 44360@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 31 22:12:09 2020 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 1kYyAT-0002cj-Hj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 22:12:09 +0100 Original-Received: from localhost ([::1]:57996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYyAS-0003QW-5N for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 17:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYyAM-0003QC-D3 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 17:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYyAM-0004xN-4E for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 17:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYyAL-0004dq-WA for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 17:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: No Wayman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Oct 2020 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44360 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.160417867217782 (code B ref -1); Sat, 31 Oct 2020 21:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2020 21:11:12 +0000 Original-Received: from localhost ([127.0.0.1]:34670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYy9W-0004ci-Bs for submit@debbugs.gnu.org; Sat, 31 Oct 2020 17:11:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYy9R-0004cW-Kb for submit@debbugs.gnu.org; Sat, 31 Oct 2020 17:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYy9R-0003Mv-DG for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 17:11:05 -0400 Original-Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]:38716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYy9P-0004ue-K4 for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 17:11:05 -0400 Original-Received: by mail-qv1-xf2b.google.com with SMTP id q1so2345298qvn.5 for ; Sat, 31 Oct 2020 14:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=neYC7yuDU4/vDiI6ImpgcBixG8rZ5MVrNwDuBU9dYFg=; b=iu7El1/0LK1zYyXjqW47u+Kn3B/81gpLlRhPN10IAq6p+TM3SoXdUa4S55ZR7eaQtp EodClWChKYU30K4R4Q4PQ2GtRBri6ddEyX+dTiz1Uil1eV7Qk4aOZTU4Y1eRtyhxdN4W O1a238nZUCY3CgYDFAV0u2iTO7nw2JhgxcoT9iBQ+xJj3gVr/F9Vtj02ieaqT1ne7+me 5AKXiEFbIKTKmRAYcGtjcDt6ZN5HOgIYkYOtz9OAloI/TPCeH/qF7ewFBDnjcBHolfKV BlyBMBSLHML7CxYOfw7/1xhEyTJB9mNYAuHd1jBMZ3T2Zm01RpxLPMtKkFf1ohrj5F9N CQsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=neYC7yuDU4/vDiI6ImpgcBixG8rZ5MVrNwDuBU9dYFg=; b=hngXYf0kLr2DzJcbGUVYz7xYSZ0K8HeHUU26DgpMsgz3kbjd7KRSVyiP88dw2SKPNL gsOW76/3bTQO8H2FhUakF2e9ZquclCEg+IkiIZ4rs3a15NFsISTteh7PUHaFU0FxRJmm hVVQN/jdvvKITefTBLVXnRFApak4TO7Vwkng/cPMMbQaF69MKl7hl9MQXYejTj+L0OAm Za20ZCZCSS4y+YEmsEbYdGBpp5KB50IEM2lHIou4PxttT4NklU0ozhUh+0pZ5Myw0cuV hGMz6n9+wBnjIWPG2t8SV7YI3KAnbcrs3FJ5FBAAdu0HyEapgwGCzCI2bCKZTfKzYdl5 /Qsw== X-Gm-Message-State: AOAM533IiaVrXSEv3jKiLGJIgdIsm0VBJ1V2/BHb/QJLRcwnYeZkgNvm YgFwH5Y92NUb+euzSHGNO2cqT+d2hB4= X-Google-Smtp-Source: ABdhPJweTuH2j20eLBumljANX5mhC+XAi3fj+xWWfpyYxJhTWIoPuyqAPjISk1uB6vfjJNvNX+Eybg== X-Received: by 2002:ad4:5387:: with SMTP id i7mr15102042qvv.43.1604178662048; Sat, 31 Oct 2020 14:11:02 -0700 (PDT) Original-Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id i204sm4962889qke.116.2020.10.31.14.11.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 14:11:01 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2b; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf2b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:192309 Archived-At: 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(# [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) afd31f9e62 - Translate describe_map_tree to Lisp (12 days ago) dcf9cd47ae - Add new Lisp implementation of sbustitute-commands-keys Thank you, Nicholas Vollmer