mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
New function record_unwind_protect_excursion
This simplifies callers a bit, and will simplify future changes. * src/eval.c (record_unwind_protect_excursion): New function. * src/buffer.c (Fkill_buffer): * src/bytecode.c (exec_byte_code): * src/editfns.c (Fsave_excursion, Freplace_buffer_contents): * src/lread.c (readevalloop, Feval_buffer): * src/window.c (scroll_command): Use it.
This commit is contained in:
parent
a0641286f6
commit
a0aa1d4ecc
7 changed files with 15 additions and 9 deletions
|
|
@ -739,8 +739,7 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
|
|||
NEXT;
|
||||
|
||||
CASE (Bsave_excursion):
|
||||
record_unwind_protect (save_excursion_restore,
|
||||
save_excursion_save ());
|
||||
record_unwind_protect_excursion ();
|
||||
NEXT;
|
||||
|
||||
CASE (Bsave_current_buffer): /* Obsolete since ??. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue