summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-12-02 16:32:20 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-12-02 16:32:20 +0000
commit9636b255906319ca5757e0e709455b863de100b7 (patch)
tree53bb3f1f96e050ad6cec3ebdf63b2adb9a1d8a42 /src/keyboard.c
parent92bc26783b8962f9e69ac33b7a5829e115b6eb1f (diff)
downloademacs-9636b255906319ca5757e0e709455b863de100b7.tar.gz
(timer_check): Revert last change.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index d81f62c6763..ad6665e6068 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4584,7 +4584,6 @@ timer_check (do_it_now)
{
int count = SPECPDL_INDEX ();
Lisp_Object old_deactivate_mark = Vdeactivate_mark;
- struct buffer *b;
/* Mark the timer as triggered to prevent problems if the lisp
code fails to reschedule it right. */
@@ -4597,13 +4596,6 @@ timer_check (do_it_now)
timers_run++;
unbind_to (count, Qnil);
- /* We must ensure that the current buffer is the same as
- the selected window's buffer, because the timers may
- have made another buffer current (bug#1458). */
- b = XBUFFER (XWINDOW (selected_window)->buffer);
- if (b != current_buffer)
- set_buffer_internal (b);
-
/* Since we have handled the event,
we don't need to tell the caller to wake up and do it. */
}