check_syntax_table (obj)
Lisp_Object obj;
{
- CHECK_CHAR_TABLE (obj, 0);
+ if (!(CHAR_TABLE_P (obj)
+ && XCHAR_TABLE (obj)->purpose == Qsyntax_table))
+ wrong_type_argument (Qsyntax_table_p, obj);
}
-
DEFUN ("syntax-table", Fsyntax_table, Ssyntax_table, 0, 0, 0,
"Return the current syntax table.\n\
This is the one specified by the current buffer.")
}
if (*p)
- XSETINT (match, *p++);
- if (XFASTINT (match) == ' ')
+ {
+ XSETINT (match, *p++);
+ if (XFASTINT (match) == ' ')
+ match = Qnil;
+ }
+ else
match = Qnil;
val = (int) code;