(SETUP_SYNTAX_TABLE_FOR_OBJECT): Treat nil like a buffer.
authorRichard M. Stallman <rms@gnu.org>
Sat, 5 Jul 1997 02:41:45 +0000 (02:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 5 Jul 1997 02:41:45 +0000 (02:41 +0000)
src/syntax.h

index bcd9056..c8c29cb 100644 (file)
@@ -235,7 +235,7 @@ extern char syntax_code_spec[16];
    If it is t, ignore properties altogether. */
 
 #define SETUP_SYNTAX_TABLE_FOR_OBJECT(object, from, count)             \
-  if (BUFFERP (object))                                                        \
+  if (BUFFERP (object) || NILP (object))                               \
     {                                                                  \
       gl_state.b_property = BEGV - 1;                                  \
       gl_state.e_property = ZV;                                                \