]> code.delx.au - gnu-emacs/commitdiff
* syntax.c (Fchar_syntax): Check the arg is a character.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 5 May 2010 17:51:40 +0000 (13:51 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 5 May 2010 17:51:40 +0000 (13:51 -0400)
Fixes: debbugs:6080
src/ChangeLog
src/syntax.c

index 20c6034f06d8058cb713c0c24d1dd43ceb744a48..2178f219cf8c16fe5f1fea5505e9b413ffcff200 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
+
 2010-05-05  Lawrence Mitchell  <wence@gmx.li>
 
        * m/sparc.h: Fix typo in earlier change.
index a80f047e43c5d39a1a95d79dda3f0b4d0fc765b1..4741fa260d236177bd0bdef37212191911c3377c 100644 (file)
@@ -858,7 +858,7 @@ are listed in the documentation of `modify-syntax-entry'.  */)
      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)]);