[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/keyboard.c
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/src/keyboard.c |
Date: |
Mon, 01 Jul 2002 04:04:04 -0400 |
Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.684 emacs/src/keyboard.c:1.685
*** emacs/src/keyboard.c:1.684 Fri Jun 28 15:43:33 2002
--- emacs/src/keyboard.c Mon Jul 1 04:04:04 2002
***************
*** 664,669 ****
--- 664,674 ----
static EMACS_TIME timer_idleness_start_time;
+ /* After Emacs stops being idle, this saves the last value
+ of timer_idleness_start_time from when it was idle. */
+
+ static EMACS_TIME timer_last_idleness_start_time;
+
/* Global variable declarations. */
***************
*** 4016,4021 ****
--- 4021,4028 ----
EMACS_GET_TIME (timer_idleness_start_time);
+ timer_last_idleness_start_time = timer_idleness_start_time;
+
/* Mark all idle-time timers as once again candidates for running. */
for (timers = Vtimer_idle_list; CONSP (timers); timers = XCDR (timers))
{
***************
*** 8368,8373 ****
--- 8375,8387 ----
keymap may have changed, so replay the sequence. */
if (BUFFERP (key))
{
+ EMACS_TIME initial_idleness_start_time
+ = timer_last_idleness_start_time;
+
+ /* Resume idle state, using the same start-time as before. */
+ timer_start_idle ();
+ timer_idleness_start_time = initial_idleness_start_time;
+
mock_input = t;
/* Reset the current buffer from the selected window
in case something changed the former and not the latter.
- [Emacs-diffs] Changes to emacs/src/keyboard.c,
Richard M. Stallman <=
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Dave Love, 2002/07/01
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Juanma Barranquero, 2002/07/04
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Dave Love, 2002/07/05
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Juanma Barranquero, 2002/07/10
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Juanma Barranquero, 2002/07/11
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Richard M. Stallman, 2002/07/12
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Kim F. Storm, 2002/07/12
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Kim F. Storm, 2002/07/14
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Ken Raeburn, 2002/07/14
- [Emacs-diffs] Changes to emacs/src/keyboard.c, Richard M. Stallman, 2002/07/16