From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#11447: 24.1.50; notifications-notify eats keystrokes Date: Fri, 11 May 2012 17:27:54 +0200 Message-ID: <87ehqqrb45.fsf@gmx.de> References: <87likzrcix.fsf@micropit.couberia.bzh> <87vck3qgy9.fsf@gmx.de> <87ipg2reoh.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336750176 319 80.91.229.3 (11 May 2012 15:29:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 May 2012 15:29:36 +0000 (UTC) Cc: Peter =?UTF-8?Q?M=C3=BCnster?= , 11447@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 11 17:29:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSrmg-0003me-Qg for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 May 2012 17:29:34 +0200 Original-Received: from localhost ([::1]:39795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSrmg-0004yn-5M for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 May 2012 11:29:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSrmP-0004ud-Rv for bug-gnu-emacs@gnu.org; Fri, 11 May 2012 11:29:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSrm5-0005PA-Ma for bug-gnu-emacs@gnu.org; Fri, 11 May 2012 11:29:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSrm5-0005Ol-Ha for bug-gnu-emacs@gnu.org; Fri, 11 May 2012 11:28:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SSrmA-0001YH-1I for bug-gnu-emacs@gnu.org; Fri, 11 May 2012 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 May 2012 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11447 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11447-submit@debbugs.gnu.org id=B11447.13367500925907 (code B ref 11447); Fri, 11 May 2012 15:29:01 +0000 Original-Received: (at 11447) by debbugs.gnu.org; 11 May 2012 15:28:12 +0000 Original-Received: from localhost ([127.0.0.1]:49286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSrlL-0001XD-Vb for submit@debbugs.gnu.org; Fri, 11 May 2012 11:28:12 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47634) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SSrlJ-0001Wz-89 for 11447@debbugs.gnu.org; Fri, 11 May 2012 11:28:10 -0400 Original-Received: (qmail invoked by alias); 11 May 2012 15:27:57 -0000 Original-Received: from p57BB9408.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.148.8] by mail.gmx.net (mp034) with SMTP; 11 May 2012 17:27:57 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX189cqNAwOE9GhLNSadeR4OiIfZOlsyk/6/tSEJq9u 5mEUzS+1CQ/Pp/ In-Reply-To: (Stefan Monnier's message of "Fri, 11 May 2012 11:20:22 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59943 Archived-At: Stefan Monnier writes: >> Maybe, but I don't know how. I've tried this: > >> (with-timeout ((if timeout (/ timeout 1000.0) 25)) >> (while (eq (gethash key dbus-return-values-table :ignore) :ignore) >> (or (input-pending-p) (sit-for 0.1 'nodisp)))) > > Well, actually if you use sit-for you don't need input-pending-p. OK. >> With the example in this bug report, I get blocked then. > > What do you mean by "blocked"? An input char goes into unread-command-event. Since nobody handles it, the while-loop runs forever. >> A key might be placed in `unread-command-events', and I still must >> handle it. > > What do you mean by "handle it"? The char event shall be taken from unread-command-event, and (for example) inserted into the current buffer. > Could let-binding unread-command-events around the call to sit-for > address the issue? Then we have the initial situation, as reported by Peter. The char is put into the let-bound unread-command-events, and it is lost when the let-clause ends. I simply don't know, who shall be responsible to move an event from unread-command-events. In the example I've shown above, it is not done. > Stefan Best regards, Michael.