diff options
| author | Richard M. Stallman | 2006-06-19 21:54:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-06-19 21:54:58 +0000 |
| commit | aa7b08b445a4daba668ca13d95f428217b4691fd (patch) | |
| tree | ab3e490f6aca8458b60a69d9406886652739a7e8 /src/syntax.c | |
| parent | dd73030d0109f890f8722b0b99dee406fcc96ba0 (diff) | |
| download | emacs-aa7b08b445a4daba668ca13d95f428217b4691fd.tar.gz emacs-aa7b08b445a4daba668ca13d95f428217b4691fd.zip | |
(init_syntax_once): Give most control chars' syntax Spunct.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index 1c8d0debbf3..9af4773a01b 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -3122,6 +3122,20 @@ init_syntax_once () | |||
| 3122 | 3122 | ||
| 3123 | Vstandard_syntax_table = Fmake_char_table (Qsyntax_table, temp); | 3123 | Vstandard_syntax_table = Fmake_char_table (Qsyntax_table, temp); |
| 3124 | 3124 | ||
| 3125 | /* Control characters should not be whitespace. */ | ||
| 3126 | temp = XVECTOR (Vsyntax_code_object)->contents[(int) Spunct]; | ||
| 3127 | for (i = 0; i <= ' ' - 1; i++) | ||
| 3128 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, i, temp); | ||
| 3129 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 0177, temp); | ||
| 3130 | |||
| 3131 | /* Except that a few really are whitespace. */ | ||
| 3132 | temp = XVECTOR (Vsyntax_code_object)->contents[(int) Swhitespace]; | ||
| 3133 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, ' ', temp); | ||
| 3134 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, '\t', temp); | ||
| 3135 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, '\n', temp); | ||
| 3136 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 015, temp); | ||
| 3137 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 014, temp); | ||
| 3138 | |||
| 3125 | temp = XVECTOR (Vsyntax_code_object)->contents[(int) Sword]; | 3139 | temp = XVECTOR (Vsyntax_code_object)->contents[(int) Sword]; |
| 3126 | for (i = 'a'; i <= 'z'; i++) | 3140 | for (i = 'a'; i <= 'z'; i++) |
| 3127 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, i, temp); | 3141 | SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, i, temp); |