comparison src/syntax.c @ 28313:cdb964ab44c3

(Fset_syntax_table): Use new macros for per-buffer variables.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 26 Mar 2000 14:06:41 +0000
parents 27ffe1e3b06d
children e3d57f7fba49
comparison
equal deleted inserted replaced
28312:034f252dd69b 28313:cdb964ab44c3
719 "Select a new syntax table for the current buffer.\n\ 719 "Select a new syntax table for the current buffer.\n\
720 One argument, a syntax table.") 720 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
732 /* Convert a letter which signifies a syntax code 733 /* Convert a letter which signifies a syntax code
733 into the code it signifies. 734 into the code it signifies.