Subject: Re: bug#8479: 24.0.50; Strange error message upon M-z M-z

From: Glenn Morris <[email-masked]>
Date: Fri, 07 Oct 2011 02:59:36 -0400

This is a general issue, eg:

M-x number-to-register RET M-z

Wrong type argument: characterp, 134217850

It seems reasonable to me to get an error in these circumstances.

How about just making the error message more explicit:

*** src/callint.c	2011-07-09 07:06:04 +0000
--- src/callint.c	2011-10-07 06:55:53 +0000
***************
*** 535,540 ****
--- 535,541 ----
  	  message1_nolog ((char *) 0);
  	  /* Passing args[i] directly stimulates compiler bug */
  	  teml = args[i];
+ 	  if (! CHARACTERP (teml)) error ("Non-character input-event");
  	  visargs[i] = Fchar_to_string (teml);
  	  break;