diff options
| author | Dmitry Antipov | 2012-08-28 10:20:08 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-08-28 10:20:08 +0400 |
| commit | 66322887059e1f2711e07def5eff661281cee855 (patch) | |
| tree | edf1ef336402c53b08c69f2b0d92c2391a2549d5 /src/undo.c | |
| parent | a3d794a153425b09a0185c660926c241d13e0f2c (diff) | |
| download | emacs-66322887059e1f2711e07def5eff661281cee855.tar.gz emacs-66322887059e1f2711e07def5eff661281cee855.zip | |
Always use set_buffer_if_live to restore original buffer at unwind.
* buffer.h (record_unwind_current_buffer): New function.
* bytecode.c, dispnew.c, editfns.c, fileio.c, fns.c, insdel.c:
* keyboard.c, keymap.c, minibuf.c, print.c, process.c, textprop.c:
* undo.c, window.c: Adjust users.
* buffer.c (set_buffer_if_live): Fix comment.
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 777e3291806..9cd1d5f9f67 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -324,7 +324,7 @@ truncate_undo_list (struct buffer *b) | |||
| 324 | /* Make the buffer current to get its local values of variables such | 324 | /* Make the buffer current to get its local values of variables such |
| 325 | as undo_limit. Also so that Vundo_outer_limit_function can | 325 | as undo_limit. Also so that Vundo_outer_limit_function can |
| 326 | tell which buffer to operate on. */ | 326 | tell which buffer to operate on. */ |
| 327 | record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ()); | 327 | record_unwind_current_buffer (); |
| 328 | set_buffer_internal (b); | 328 | set_buffer_internal (b); |
| 329 | 329 | ||
| 330 | list = BVAR (b, undo_list); | 330 | list = BVAR (b, undo_list); |