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: Re: how do i get the list of pending input events? Date: 03 Oct 2002 12:57:06 -0400 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: <871y77zcil.fsf@computer.localdomain> References: <87smzspqbj.fsf@computer.localdomain> <3D98BF8C.2040808@ihs.com> <87lm5i7wd2.fsf@computer.localdomain> <87d6qudf6a.fsf@freeshell.org> <5lu1k6jjms.fsf@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1033666262 25553 127.0.0.1 (3 Oct 2002 17:31:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2002 17:31:02 +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 17x9oS-0006di-00 for ; Thu, 03 Oct 2002 19:31:00 +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 17x9oo-00005a-00; Thu, 03 Oct 2002 13:31:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!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: 61 Original-Xref: shelby.stanford.edu gnu.emacs.help:105673 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:2191 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2191 "Stefan Monnier " writes: > >>>>> "Evgeny" == Evgeny Roubinchtein writes: > > Could you explain in more detail how you envision this feature? You > > seem to imply there is some queue which the C code does not expose to > > the Lisp engine, and I am not sure that such queue exists. Do you > > have evidence to the contrary? > > The queue definitely exists (called something like keybuf in the C code) > and is not exposed to Lisp. But the question remains: what for ? I guess I might have been trying the wrong approach for the problem I am having. Perhaps peopel could sugegst alternatives--- The problem is (and I know several people have mentioned the same problem) ---> Want to make (sit-for) ignore certain inpuuts (and continue doing its thing as if the input never happened). An example of this is: idle-timer tasks in emacs keep working fine in emacs -nw when I switch to another window, or move my mouse to another window, or switch to another sawfish-viewport. --- becasuse emacs -nw does not care for mouse-events. But, the idle-timer stops in "regular" 'emacs', as soon as you move to another window----(even though switching to another window is when the user wants emacs to think it is idle and do its "idle" stuff..) [1] The only workaround i envisioned is to implement my own "sit-for" that would essentially "sleep-for" for small times, and then check whether any "real" (vix. non-mouse) event has occurred, else will continue another sleep-fo.. and so on, until its entire sit-for-duratino is completed. please write in with alternative suggestions? guess you could always flame me for trying ungodly things with what is suppposed to be an editor... :)... OTOH, emacs is now an editing environment even officially.. and of course, an OS unofficially :) [1] An example of this is the vel.el i posted to g.e.s (or the mouse-based mvel.el i will post soon) --- say, I want to leave my emacs scrolling up slowly, and want to work in the adjacent applicatino while emacs is scrolling. I can do that just fine in emacs -nw. But in emacs, the moment I press Alt-tab or alt-left (sawfish), or try to move the mouse, the scrolling stops. DG http://24.197.159.102/~deego/ --