From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael.cadilhac@lrde.org (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Re: The order input events are processed. Date: Sun, 10 Sep 2006 15:14:59 +0200 Organization: Epita/LRDE Message-ID: <87zmd7x3qk.fsf@lrde.org> References: <87odtrrkgh.fsf@lrde.org> <87ejukt7fe.fsf@lrde.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1964618346==" X-Trace: sea.gmane.org 1157894140 8727 80.91.229.2 (10 Sep 2006 13:15:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2006 13:15:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 10 15:15:31 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMP9X-0006BQ-FM for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 15:15:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMP9W-0006T7-R4 for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 09:15:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMP9I-0006RF-CM for emacs-devel@gnu.org; Sun, 10 Sep 2006 09:15:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMP9G-0006PL-Uj for emacs-devel@gnu.org; Sun, 10 Sep 2006 09:15:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMP9G-0006P7-Oj for emacs-devel@gnu.org; Sun, 10 Sep 2006 09:14:58 -0400 Original-Received: from [62.39.139.2] (helo=kualalumpur.lrde.epita.fr) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GMPAH-0002DQ-2w; Sun, 10 Sep 2006 09:16:01 -0400 Original-Received: from mahaena.lrde.epita.fr ([192.168.101.66] helo=mahaena.lrde) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.50) id 1GMP9C-0005lx-Lx; Sun, 10 Sep 2006 15:14:54 +0200 Original-To: rms@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== In-Reply-To: (Richard Stallman's message of "Sun, 10 Sep 2006 09:05:04 -0400") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59626 Archived-At: --===============1964618346== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Richard Stallman writes: > However, I've always dreamt about an unique entry point for > unread-events: unread-command-events would store direct events (u-c-e > =3D3D '(?a ?b)) or events as a cons, the cdr telling if input-metho= d has > to be used (u-c-e =3D3D '(?a (?b . nil) ?c)). Does it seems crazy? [2] > > It seems ugly and complex. Not as good as the present scheme. Okey. > \(fn SECONDS &optional NODISP)" > ! (unless (or unread-command-events > ! unread-post-input-method-events > ! unread-input-method-events > ! (>=3D unread-command-char 0)) Isn't input-pending-p enough? > ! (when (or obsolete (numberp nodisp)) > ! (setq seconds (+ seconds (* 1e-3 nodisp))) > ! (setq nodisp obsolete)) > ! (if noninteractive > ! (progn (sleep-for seconds) t) > ! (unless nodisp (redisplay)) > ! (or (<=3D seconds 0) > ! (let ((read (read-event nil nil seconds))) > ! (or (null read) > ! (progn (push read unread-command-events) nil))))))) I was thinking of an active loop because I thought the test had to be made here, replacing =AB read-event =BB. If we're sure read-event will not take an event from unread-input-method-events here, then it's ok. =2D-=20 | Micha=EBl `Micha' Cadilhac | Si les religions etaient aussi tole= - | | Epita/LRDE Promo 2007 | rantes qu'elles le pretendent, il y = | | http://www.lrde.org/~cadilh_m | a longtemps qu'il n'y en aurait plus = | `-- - JID: micha@amessage.be --' -- Moustic - -= -' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFFBA/WZYNf4qobZ7kRAq61AKCMm41dGVOnYwMLdzQiMx+Djf/UHgCgvoaE SyzNrRGQZJYfXd3lNXOg+bQ= =tPUi -----END PGP SIGNATURE----- --=-=-=-- --===============1964618346== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1964618346==--