bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21586: 24.5; Wrong type argument: characterp, 134217728


From: Eli Zaretskii
Subject: bug#21586: 24.5; Wrong type argument: characterp, 134217728
Date: Thu, 01 Oct 2015 11:02:35 +0300

> Date: Tue, 29 Sep 2015 22:38:43 +0300
> From: arto <artur.penttinen@gmail.com>
> 
> I'm probably found a bug when trying load paredit.el file,
> error message:
> 
>   Wrong type argument: characterp, 134217728
> 
> After short investigation was found erroneous function:
> 
>   read-kbd-macro
> 
> (read-kbd-macro "M-)") gives this error.
> 
> In this function called edmacro-parse-keys, and in it
> code contains error:
> 
>   (cl-incf bits (cdr (assq (aref word 0)
>      '((?A . ?\A-\^@) (?C . ?\C-\^@)
>        (?H . ?\H-\^@) (?M . ?\M-\^@)
>        (?s . ?\s-\^@) (?S . ?\S-\^@)))))
> 
> This is a short snippet for demo of error:
> 
> (setq aa (assq (aref "M-)" 0)
>       '((?M . ?\M-\^@)))) -> (77 . 134217728)
> 
> (format "%s" aa) -> "(77 . 134217728)"
> 
> (cdr aa) -> Wrong type argument: characterp, 134217728
> 
> Is it a bug, or new feature or limitation?

This doesn't happen to me.  Can you reproduce this in "emacs -Q"?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]