From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: D. Goel Newsgroups: gmane.emacs.help Subject: sit-for divergent behavior in emacs and emacs -nw Date: 27 Sep 2002 14:38:47 -0400 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87ofajcm6g.fsf@computer.localdomain> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033152982 2498 127.0.0.1 (27 Sep 2002 18:56:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Sep 2002 18:56:22 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17v0Hl-0000eA-00 for ; Fri, 27 Sep 2002 20:56:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17v0Hx-0002KP-00; Fri, 27 Sep 2002 14:56:33 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 34 Original-Xref: nntp.stanford.edu gnu.emacs.help:105415 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1963 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1963 What is the way for me to get emacs to start doing somethign and keep doing it every 2 seconds as long as it remains idle; so that i can work on somethign else ? Start a run-with-idle-timer that calls sit-for every few seconds, right? but The problem seems to be --> Insert (sit-for 3), press C-u C-x C-e, and now try working on another application --- to do that, you will need to move mouse, or press alt-left to swich viewports in sawfish etc. But as soon as you move the mouse, or press alt-left, the sit-for returns nil ((even though the alt-left never shows up in M-x view-lossage)). The sit-for behaves differently in emacs -nw. Is there an option I am missing? Or Should there be an option in sit-for to behave as if in emacs -nw and hence i should file a wishlist bugreport? (A lame :=) example of the "use" i am missing is: see vel.el i posted on g.e.sources recently... say, i want to leave my emacs scrolling up slowly, while i go do some other work; I can do that in emacs -nw but not in a normal emaca..) DG http://24.197.159.102/~deego/ --