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/keymap.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/keymap.c')
| -rw-r--r-- | src/keymap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c index 21f7dcb5d37..4031091501c 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1570,9 +1570,7 @@ like in the respective argument of `key-binding'. */) | |||
| 1570 | would not be a problem here, but it is easier to keep | 1570 | would not be a problem here, but it is easier to keep |
| 1571 | things the same. | 1571 | things the same. |
| 1572 | */ | 1572 | */ |
| 1573 | 1573 | record_unwind_current_buffer (); | |
| 1574 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); | ||
| 1575 | |||
| 1576 | set_buffer_internal (XBUFFER (XWINDOW (window)->buffer)); | 1574 | set_buffer_internal (XBUFFER (XWINDOW (window)->buffer)); |
| 1577 | } | 1575 | } |
| 1578 | } | 1576 | } |