]> git.eshelyaron.com Git - emacs.git/commit
Better way to protect redisplay routines from locked narrowings.
authorGregory Heytings <gregory@heytings.org>
Sun, 21 Aug 2022 19:33:46 +0000 (19:33 +0000)
committerGregory Heytings <gregory@heytings.org>
Sun, 21 Aug 2022 19:35:42 +0000 (21:35 +0200)
commit01efdbd33664d45818f0686589d38e2bfad0ab69
tree9d498557427bb05b389f2939096af92d2d5d043a
parent22375315f1471b8a89b203215295f6ea21072ec6
Better way to protect redisplay routines from locked narrowings.

* src/xdisp.c (reset_outermost_narrowing,
unwind_reset_outermost_narrowing): New functions.
(redisplay_internal): Use the new functions.

* src/editfns.c (Fnarrow_to_region): Use the limits of the
locked restriction instead of the position arguments if necessary.
Update docstring.
(Fnarrowing_lock): Update docstring.
src/editfns.c
src/xdisp.c