diff options
| author | Paul Eggert | 2018-06-07 18:53:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-06-07 19:11:49 -0700 |
| commit | a0aa1d4ecc123d652285ef10ea62ed55c6c118d6 (patch) | |
| tree | c56177683a5a552e17eb8ce7ed27256507361b60 /src/buffer.c | |
| parent | a0641286f6e58f4dca4221caa6dd559bfacea699 (diff) | |
| download | emacs-a0aa1d4ecc123d652285ef10ea62ed55c6c118d6.tar.gz emacs-a0aa1d4ecc123d652285ef10ea62ed55c6c118d6.zip | |
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.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 14837372d34..244c1851fab 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1696,7 +1696,7 @@ cleaning up all windows currently displaying the buffer to be killed. */) | |||
| 1696 | { | 1696 | { |
| 1697 | ptrdiff_t count = SPECPDL_INDEX (); | 1697 | ptrdiff_t count = SPECPDL_INDEX (); |
| 1698 | 1698 | ||
| 1699 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 1699 | record_unwind_protect_excursion (); |
| 1700 | set_buffer_internal (b); | 1700 | set_buffer_internal (b); |
| 1701 | 1701 | ||
| 1702 | /* First run the query functions; if any query is answered no, | 1702 | /* First run the query functions; if any query is answered no, |