GNU bug report logs - #8479
24.0.50; Strange error message upon M-z M-z

Previous Next

Package: emacs;

Reported by: David Kastrup <dak <at> gnu.org>

Date: Mon, 11 Apr 2011 16:03:02 UTC

Severity: minor

Found in version 24.0.50

Fixed in version 24.0.91

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: David Kastrup <dak <at> gnu.org>, 8479 <at> debbugs.gnu.org
Subject: bug#8479: 24.0.50; Strange error message upon M-z M-z
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;




This bug report was last modified 13 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.