Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
423e705d
Commit
423e705d
authored
May 01, 2001
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(update_syntax_table): Check that oldi has the same
properties as old_prop before deciding not to invalidate.
parent
469fc0a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/syntax.c
src/syntax.c
+7
-7
No files found.
src/syntax.c
View file @
423e705d
...
...
@@ -162,7 +162,7 @@ update_syntax_table (charpos, count, init, object)
}
oldi
=
i
=
count
>
0
?
gl_state
.
forward_i
:
gl_state
.
backward_i
;
/* We are guarant
i
ed to be called with CHARPOS either in i,
/* We are guarant
e
ed to be called with CHARPOS either in i,
or further off. */
if
(
NULL_INTERVAL_P
(
i
))
error
(
"Error in syntax_table logic for to-the-end intervals"
);
...
...
@@ -172,21 +172,21 @@ update_syntax_table (charpos, count, init, object)
error
(
"Error in syntax_table logic for intervals <-"
);
/* Update the interval. */
i
=
update_interval
(
i
,
charpos
);
if
(
oldi
->
position
!=
INTERVAL_LAST_POS
(
i
))
if
(
!
gl_state
.
left_ok
||
oldi
->
position
!=
INTERVAL_LAST_POS
(
i
))
{
invalidate
=
0
;
gl_state
.
right_ok
=
1
;
/* Invalidate the other end. */
gl_state
.
forward_i
=
i
;
gl_state
.
e_property
=
INTERVAL_LAST_POS
(
i
)
-
gl_state
.
offset
;
}
}
}
else
if
(
charpos
>=
INTERVAL_LAST_POS
(
i
))
/* Move right. */
{
if
(
count
<
0
)
error
(
"Error in syntax_table logic for intervals ->"
);
/* Update the interval. */
i
=
update_interval
(
i
,
charpos
);
if
(
i
->
position
!=
INTERVAL_LAST_POS
(
oldi
))
if
(
!
gl_state
.
right_ok
||
i
->
position
!=
INTERVAL_LAST_POS
(
oldi
))
{
invalidate
=
0
;
gl_state
.
left_ok
=
1
;
/* Invalidate the other end. */
...
...
@@ -206,9 +206,9 @@ update_syntax_table (charpos, count, init, object)
if
(
invalidate
)
invalidate
=
!
EQ
(
tmp_table
,
gl_state
.
old_prop
);
/* Need to invalidate? */
if
(
invalidate
)
/* Did not get to adjacent interval. */
{
/* with the same table => */
/* invalidate the old range. */
if
(
invalidate
)
/* Did not get to adjacent interval. */
{
/* with the same table => */
/* invalidate the old range. */
if
(
count
>
0
)
{
gl_state
.
backward_i
=
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment