Make sure to preserve point across locked narrowing
* src/editfns.c (Fnarrow_to_region): Save the position of point when locking the restriction, since this function can move point.
This commit is contained in:
parent
d92fb1592a
commit
76f49943c3
1 changed files with 1 additions and 0 deletions
|
@ -2721,6 +2721,7 @@ the current body form. */)
|
|||
if (BEGV != s || ZV != e)
|
||||
current_buffer->clip_changed = 1;
|
||||
|
||||
record_unwind_protect (restore_point_unwind, Fpoint_marker ());
|
||||
record_unwind_protect (unwind_locked_begv, Fpoint_min ());
|
||||
record_unwind_protect (unwind_locked_zv, Fpoint_max ());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue