diff options
| author | Kenichi Handa | 2012-08-22 18:05:50 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-08-22 18:05:50 +0900 |
| commit | fabc1281e9cde34ff9a19d843316d2ceca8647ad (patch) | |
| tree | f38f13cab3ec6c32ab8ab49ea2e60f64969a0d22 /src/syntax.c | |
| parent | 4ff819d728960bf5e52b72501c606f4bb3fde028 (diff) | |
| parent | 842e3a93aa3a0826cb4148376e54cd1527d10901 (diff) | |
| download | emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.tar.gz emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.zip | |
merge trunk
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 11 |
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); |
| 151 | static int in_classes (int, Lisp_Object); | 151 | static int in_classes (int, Lisp_Object); |
| 152 | |||
| 153 | /* This setter is used only in this file, so it can be private. */ | ||
| 154 | static inline void | ||
| 155 | bset_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. */ |
| 154 | int syntax_prefix_flag_p (int c) | 161 | int 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); |