From: Alan Mackenzie <acm@muc.de>
To: zhang cc <ccsmile2008@outlook.com>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: describe-key: Wrong type argument: sequencep, C-up
Date: Fri, 29 Dec 2017 10:01:14 +0000 [thread overview]
Message-ID: <20171229100114.GB15274@ACM> (raw)
In-Reply-To: <20171229091455.GA15274@ACM>
Hello again, Zhang.
On Fri, Dec 29, 2017 at 09:14:55 +0000, Alan Mackenzie wrote:
> On Fri, Dec 29, 2017 at 04:31:39 +0000, zhang cc wrote:
> > Run the command: describe-key, then press the key Control-up, and emacs report the following error message:
> > describe-key: Wrong type argument: sequencep, C-up
> > Emacs: 26.0.90
> > OS: macOS 10.13.2
> Yes. A careless `copy-sequence' has been used.
> I'll fix it.
I've committed the following patch to the emacs-26 branch which should
fix the bug. Thanks for taking the trouble to report it.
commit b240c7846b0d03e9f69af753cd24eb1e550f543c
Author: Alan Mackenzie <acm@muc.de>
Date: Fri Dec 29 09:54:03 2017 +0000
* lisp/help.el (describe-key): Only (copy-sequence elt) when elt is a list.
diff --git a/lisp/help.el b/lisp/help.el
index fa7f6b0d5b..8ff27b0b24 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -876,7 +876,7 @@ describe-key
(when (vectorp key)
(let* ((last (1- (length key)))
(elt (aref key last))
- (elt-1 (copy-sequence elt))
+ (elt-1 (if (listp elt) (copy-sequence elt) elt))
key-1 down-event-type)
(when (and (listp elt-1)
(symbolp (car elt-1))
--
Alan Mackenzie (Nuremberg, Germany).
prev parent reply other threads:[~2017-12-29 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-29 4:31 describe-key: Wrong type argument: sequencep, C-up zhang cc
2017-12-29 9:14 ` Alan Mackenzie
2017-12-29 10:01 ` Alan Mackenzie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171229100114.GB15274@ACM \
--to=acm@muc.de \
--cc=ccsmile2008@outlook.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.