aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 69965d1d824..f995b8f2cac 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -149,6 +149,13 @@ static void scan_sexps_forward (struct lisp_parse_state *,
149 ptrdiff_t, ptrdiff_t, ptrdiff_t, EMACS_INT, 149 ptrdiff_t, ptrdiff_t, ptrdiff_t, EMACS_INT,
150 int, Lisp_Object, int); 150 int, Lisp_Object, int);
151static int in_classes (int, Lisp_Object); 151static int in_classes (int, Lisp_Object);
152
153/* This setter is used only in this file, so it can be private. */
154static inline void
155bset_syntax_table (struct buffer *b, Lisp_Object val)
156{
157 b->INTERNAL_FIELD (syntax_table) = val;
158}
152 159
153/* Whether the syntax of the character C has the prefix flag set. */ 160/* Whether the syntax of the character C has the prefix flag set. */
154int syntax_prefix_flag_p (int c) 161int syntax_prefix_flag_p (int c)
@@ -818,7 +825,7 @@ It is a copy of the TABLE, which defaults to the standard syntax table. */)
818 825
819 /* Only the standard syntax table should have a default element. 826 /* Only the standard syntax table should have a default element.
820 Other syntax tables should inherit from parents instead. */ 827 Other syntax tables should inherit from parents instead. */
821 CSET (XCHAR_TABLE (copy), defalt, Qnil); 828 set_char_table_defalt (copy, Qnil);
822 829
823 /* Copied syntax tables should all have parents. 830 /* Copied syntax tables should all have parents.
824 If we copied one with no parent, such as the standard syntax table, 831 If we copied one with no parent, such as the standard syntax table,
@@ -835,7 +842,7 @@ One argument, a syntax table. */)
835{ 842{
836 int idx; 843 int idx;
837 check_syntax_table (table); 844 check_syntax_table (table);
838 BSET (current_buffer, syntax_table, table); 845 bset_syntax_table (current_buffer, table);
839 /* Indicate that this buffer now has a specified syntax table. */ 846 /* Indicate that this buffer now has a specified syntax table. */
840 idx = PER_BUFFER_VAR_IDX (syntax_table); 847 idx = PER_BUFFER_VAR_IDX (syntax_table);
841 SET_PER_BUFFER_VALUE_P (current_buffer, idx, 1); 848 SET_PER_BUFFER_VALUE_P (current_buffer, idx, 1);