diff options
| author | Karl Heuer | 1998-02-22 01:04:35 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-02-22 01:04:35 +0000 |
| commit | 1d1293ddf167be4451faa228266322dfcd8ac51d (patch) | |
| tree | b2e84af31cf215d00ebb674dee78da33d94c7ce4 /src/syntax.h | |
| parent | ee0cdb4862cfa15df3bbdb9717ddd5a7803975b4 (diff) | |
| download | emacs-1d1293ddf167be4451faa228266322dfcd8ac51d.tar.gz emacs-1d1293ddf167be4451faa228266322dfcd8ac51d.zip | |
(UPDATE_SYNTAX_TABLE_FORWARD): Fix condition.
(UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE): Likewise.
(SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix bounds.
Diffstat (limited to 'src/syntax.h')
| -rw-r--r-- | src/syntax.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/syntax.h b/src/syntax.h index e70fd71e051..ac4b84db04b 100644 --- a/src/syntax.h +++ b/src/syntax.h | |||
| @@ -210,7 +210,7 @@ extern char syntax_code_spec[16]; | |||
| 210 | currently good for a position before POS. */ | 210 | currently good for a position before POS. */ |
| 211 | 211 | ||
| 212 | #define UPDATE_SYNTAX_TABLE_FORWARD(pos) \ | 212 | #define UPDATE_SYNTAX_TABLE_FORWARD(pos) \ |
| 213 | ((pos) >= gl_state.e_property - gl_state.offset \ | 213 | ((pos) >= gl_state.e_property \ |
| 214 | ? (update_syntax_table ((pos) + gl_state.offset, 1, 0, \ | 214 | ? (update_syntax_table ((pos) + gl_state.offset, 1, 0, \ |
| 215 | gl_state.object), \ | 215 | gl_state.object), \ |
| 216 | 1) \ | 216 | 1) \ |
| @@ -220,7 +220,7 @@ extern char syntax_code_spec[16]; | |||
| 220 | currently good for a position after POS. */ | 220 | currently good for a position after POS. */ |
| 221 | 221 | ||
| 222 | #define UPDATE_SYNTAX_TABLE_BACKWARD(pos) \ | 222 | #define UPDATE_SYNTAX_TABLE_BACKWARD(pos) \ |
| 223 | ((pos) <= gl_state.b_property - gl_state.offset \ | 223 | ((pos) <= gl_state.b_property \ |
| 224 | ? (update_syntax_table ((pos) + gl_state.offset, -1, 0, \ | 224 | ? (update_syntax_table ((pos) + gl_state.offset, -1, 0, \ |
| 225 | gl_state.object), \ | 225 | gl_state.object), \ |
| 226 | 1) \ | 226 | 1) \ |
| @@ -229,11 +229,11 @@ extern char syntax_code_spec[16]; | |||
| 229 | /* Make syntax table good for POS. */ | 229 | /* Make syntax table good for POS. */ |
| 230 | 230 | ||
| 231 | #define UPDATE_SYNTAX_TABLE(pos) \ | 231 | #define UPDATE_SYNTAX_TABLE(pos) \ |
| 232 | ((pos) <= gl_state.b_property - gl_state.offset \ | 232 | ((pos) <= gl_state.b_property \ |
| 233 | ? (update_syntax_table ((pos) + gl_state.offset, -1, 0, \ | 233 | ? (update_syntax_table ((pos) + gl_state.offset, -1, 0, \ |
| 234 | gl_state.object), \ | 234 | gl_state.object), \ |
| 235 | 1) \ | 235 | 1) \ |
| 236 | : ((pos) >= gl_state.e_property - gl_state.offset \ | 236 | : ((pos) >= gl_state.e_property \ |
| 237 | ? (update_syntax_table ((pos) + gl_state.offset, 1, 0, \ | 237 | ? (update_syntax_table ((pos) + gl_state.offset, 1, 0, \ |
| 238 | gl_state.object), \ | 238 | gl_state.object), \ |
| 239 | 1) \ | 239 | 1) \ |
| @@ -272,14 +272,14 @@ if (1) \ | |||
| 272 | if (BUFFERP (gl_state.object)) \ | 272 | if (BUFFERP (gl_state.object)) \ |
| 273 | { \ | 273 | { \ |
| 274 | struct buffer *buf = XBUFFER (gl_state.object); \ | 274 | struct buffer *buf = XBUFFER (gl_state.object); \ |
| 275 | gl_state.b_property = BUF_BEGV (buf) - 1; \ | 275 | gl_state.b_property = 0; \ |
| 276 | gl_state.e_property = BUF_ZV (buf); \ | 276 | gl_state.e_property = BUF_ZV (buf) - BUF_BEGV (buf) + 1; \ |
| 277 | gl_state.offset = BUF_BEGV (buf) - 1; \ | 277 | gl_state.offset = BUF_BEGV (buf) - 1; \ |
| 278 | } \ | 278 | } \ |
| 279 | else if (NILP (gl_state.object)) \ | 279 | else if (NILP (gl_state.object)) \ |
| 280 | { \ | 280 | { \ |
| 281 | gl_state.b_property = BEGV - 1; \ | 281 | gl_state.b_property = 0; \ |
| 282 | gl_state.e_property = ZV; \ | 282 | gl_state.e_property = ZV - BEGV + 1; \ |
| 283 | gl_state.offset = BEGV - 1; \ | 283 | gl_state.offset = BEGV - 1; \ |
| 284 | } \ | 284 | } \ |
| 285 | else if (EQ (gl_state.object, Qt)) \ | 285 | else if (EQ (gl_state.object, Qt)) \ |