Subject: Re: bug#1205: 23.0.60; C-x RET c FOO C-x C-g signals an error

From: Glenn Morris <[email-masked]>
Date: Mon, 20 Oct 2008 22:50:46 -0400

Eli Zaretskii wrote:

>   emacs -Q
>   C-x RET c utf-8 RET C-x C-g
>
> produces an unexpected error message:
>
>   Wrong type argument: commandp, nil

Perhaps this:

*** mule-cmds.el         5 Oct 2008 19:07:03 -0000 1.341
--- mule-cmds.el         21 Oct 2008 02:52:14 -0000
***************
*** 287,292 ****
--- 287,295 ----
     (cmd (key-binding keyseq))
      prefix)
  
+     (if (char-equal last-input-char ?\C-g)
+     (keyboard-quit))
+ 
      (when (memq cmd '(universal-argument digit-argument))
        (call-interactively cmd)