summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1998-02-22 01:04:35 +0000
committerKarl Heuer <kwzh@gnu.org>1998-02-22 01:04:35 +0000
commitd26e10dbafea5c8edf6f662f493aa2f659cce7a6 (patch)
tree109ce9c446ae1b621ec288649d25109b19ae3242 /src
parentc9a23e1b81a3c41b112dba0ec6f590896e667b82 (diff)
downloademacs-d26e10dbafea5c8edf6f662f493aa2f659cce7a6.tar.gz
(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')
-rw-r--r--src/syntax.h16
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];
currently good for a position before POS. */
#define UPDATE_SYNTAX_TABLE_FORWARD(pos) \
- ((pos) >= gl_state.e_property - gl_state.offset \
+ ((pos) >= gl_state.e_property \
? (update_syntax_table ((pos) + gl_state.offset, 1, 0, \
gl_state.object), \
1) \
@@ -220,7 +220,7 @@ extern char syntax_code_spec[16];
currently good for a position after POS. */
#define UPDATE_SYNTAX_TABLE_BACKWARD(pos) \
- ((pos) <= gl_state.b_property - gl_state.offset \
+ ((pos) <= gl_state.b_property \
? (update_syntax_table ((pos) + gl_state.offset, -1, 0, \
gl_state.object), \
1) \
@@ -229,11 +229,11 @@ extern char syntax_code_spec[16];
/* Make syntax table good for POS. */
#define UPDATE_SYNTAX_TABLE(pos) \
- ((pos) <= gl_state.b_property - gl_state.offset \
+ ((pos) <= gl_state.b_property \
? (update_syntax_table ((pos) + gl_state.offset, -1, 0, \
gl_state.object), \
1) \
- : ((pos) >= gl_state.e_property - gl_state.offset \
+ : ((pos) >= gl_state.e_property \
? (update_syntax_table ((pos) + gl_state.offset, 1, 0, \
gl_state.object), \
1) \
@@ -272,14 +272,14 @@ if (1) \
if (BUFFERP (gl_state.object)) \
{ \
struct buffer *buf = XBUFFER (gl_state.object); \
- gl_state.b_property = BUF_BEGV (buf) - 1; \
- gl_state.e_property = BUF_ZV (buf); \
+ gl_state.b_property = 0; \
+ gl_state.e_property = BUF_ZV (buf) - BUF_BEGV (buf) + 1; \
gl_state.offset = BUF_BEGV (buf) - 1; \
} \
else if (NILP (gl_state.object)) \
{ \
- gl_state.b_property = BEGV - 1; \
- gl_state.e_property = ZV; \
+ gl_state.b_property = 0; \
+ gl_state.e_property = ZV - BEGV + 1; \
gl_state.offset = BEGV - 1; \
} \
else if (EQ (gl_state.object, Qt)) \