mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 23:31:55 -08:00
(Fmove_overlay): Clean up setting o_beg and o_end.
This commit is contained in:
parent
50aee051c3
commit
80509f2f6e
1 changed files with 4 additions and 8 deletions
12
src/buffer.c
12
src/buffer.c
|
|
@ -2819,10 +2819,8 @@ buffer.")
|
|||
Lisp_Object o_beg;
|
||||
Lisp_Object o_end;
|
||||
|
||||
o_beg = OVERLAY_START (overlay);
|
||||
o_end = OVERLAY_END (overlay);
|
||||
o_beg = OVERLAY_POSITION (o_beg);
|
||||
o_end = OVERLAY_POSITION (o_end);
|
||||
o_beg = OVERLAY_POSITION (OVERLAY_START (overlay));
|
||||
o_end = OVERLAY_POSITION (OVERLAY_END (overlay));
|
||||
|
||||
modify_overlay (ob, XINT (o_beg), XINT (o_end));
|
||||
}
|
||||
|
|
@ -2837,10 +2835,8 @@ buffer.")
|
|||
Lisp_Object o_end;
|
||||
int change_beg, change_end;
|
||||
|
||||
o_beg = OVERLAY_START (overlay);
|
||||
o_end = OVERLAY_END (overlay);
|
||||
o_beg = OVERLAY_POSITION (o_beg);
|
||||
o_end = OVERLAY_POSITION (o_end);
|
||||
o_beg = OVERLAY_POSITION (OVERLAY_START (overlay));
|
||||
o_end = OVERLAY_POSITION (OVERLAY_END (overlay));
|
||||
|
||||
if (XINT (o_beg) == XINT (beg))
|
||||
modify_overlay (b, XINT (o_end), XINT (end));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue