aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index f52812e096e..befa704f5d5 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -721,11 +721,12 @@ One argument, a syntax table.")
721 (table) 721 (table)
722 Lisp_Object table; 722 Lisp_Object table;
723{ 723{
724 int idx;
724 check_syntax_table (table); 725 check_syntax_table (table);
725 current_buffer->syntax_table = table; 726 current_buffer->syntax_table = table;
726 /* Indicate that this buffer now has a specified syntax table. */ 727 /* Indicate that this buffer now has a specified syntax table. */
727 current_buffer->local_var_flags 728 idx = BUFFER_LOCAL_VAR_IDX (syntax_table);
728 |= XFASTINT (buffer_local_flags.syntax_table); 729 SET_BUFFER_HAS_LOCAL_VALUE_P (current_buffer, idx, 1);
729 return table; 730 return table;
730} 731}
731 732