unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: idle-timer clock gets reset upon subprocess output.
Date: Thu, 27 Jun 2002 10:45:13 -0600 (MDT)	[thread overview]
Message-ID: <200206271645.g5RGjDe14058@santafe.santafe.edu> (raw)
In-Reply-To: <ap3eleylrqv.fsf@poynting.umd.edu> (deego@glue.umd.edu)

I think I have fixed it.  Please try this fix.

*** keyboard.c.~1.683.~	Tue Jun 18 04:21:20 2002
--- keyboard.c	Thu Jun 27 08:41:32 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;
+ 
  \f
  /* Global variable declarations.  */
  
***************
*** 3999,4004 ****
--- 4004,4011 ----
  
    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))
      {
***************
*** 8332,8337 ****
--- 8339,8351 ----
  	     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.

       reply	other threads:[~2002-06-27 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ap3eleylrqv.fsf@poynting.umd.edu>
2002-06-27 16:45 ` Richard Stallman [this message]
2002-07-04  6:15   ` idle-timer clock gets reset upon subprocess output D. Goel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200206271645.g5RGjDe14058@santafe.santafe.edu \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).