Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c82ed728
Commit
c82ed728
authored
May 28, 1993
by
Jim Blandy
Browse files
* buffer.c (Fmove_overlay): If the overlay is changing buffers,
do a thorough redisplay.
parent
312b93ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
src/buffer.c
src/buffer.c
+24
-20
No files found.
src/buffer.c
View file @
c82ed728
...
...
@@ -1566,26 +1566,30 @@ buffer.")
b = XBUFFER (buffer);
/* Redisplay the area the overlay has just left, or just enclosed. */
{
Lisp_Object
o_beg
=
OVERLAY_START
(
overlay
);
Lisp_Object
o_end
=
OVERLAY_END
(
overlay
);
int
change_beg
,
change_end
;
o_beg
=
OVERLAY_POSITION
(
o_beg
);
o_end
=
OVERLAY_POSITION
(
o_end
);
if
(
XINT
(
o_beg
)
==
XINT
(
beg
))
redisplay_region
(
b
,
XINT
(
o_end
),
XINT
(
end
));
else
if
(
XINT
(
o_end
)
==
XINT
(
end
))
redisplay_region
(
b
,
XINT
(
o_beg
),
XINT
(
beg
));
else
{
if
(
XINT
(
beg
)
<
XINT
(
o_beg
))
o_beg
=
beg
;
if
(
XINT
(
end
)
>
XINT
(
o_end
))
o_end
=
end
;
redisplay_region
(
b
,
XINT
(
o_beg
),
XINT
(
o_end
));
}
}
/* If the overlay has changed buffers, do a thorough redisplay. */
if (! EQ (buffer, XMARKER (OVERLAY_START (overlay))->buffer))
windows_or_buffers_changed = 1;
else
/* Redisplay the area the overlay has just left, or just enclosed. */
{
Lisp_Object o_beg = OVERLAY_START (overlay);
Lisp_Object o_end = OVERLAY_END (overlay);
int change_beg, change_end;
o_beg = OVERLAY_POSITION (o_beg);
o_end = OVERLAY_POSITION (o_end);
if (XINT (o_beg) == XINT (beg))
redisplay_region (b, XINT (o_end), XINT (end));
else if (XINT (o_end) == XINT (end))
redisplay_region (b, XINT (o_beg), XINT (beg));
else
{
if (XINT (beg) < XINT (o_beg)) o_beg = beg;
if (XINT (end) > XINT (o_end)) o_end = end;
redisplay_region (b, XINT (o_beg), XINT (o_end));
}
}
b->overlays_before = Fdelq (overlay, b->overlays_before);
b->overlays_after = Fdelq (overlay, b->overlays_after);
...
...
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