Subject: Re: bug#6080: Behaviour of `char-syntax' changes when byte-compiled

From: Stefan Monnier <[email-masked]>
Date: Wed, 05 May 2010 13:54:17 -0400

> Will you fix the char-syntax function so that it signals an error in this
> case?

I've just installed such a change,

        Stefan

--- src/syntax.c	2010-03-10 14:45:21 +0000
+++ src/syntax.c	2010-05-05 17:20:27 +0000
@@ -858,7 +858,7 @@
      Lisp_Object character;
 {
   int char_int;
-  CHECK_NUMBER (character);
+  CHECK_CHARACTER (character);
   char_int = XINT (character);
   SETUP_BUFFER_SYNTAX_TABLE ();
   return make_number (syntax_code_spec[(int) SYNTAX (char_int)]);