[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11447: 24.1.50; notifications-notify eats keystrokes
From: |
Stefan Monnier |
Subject: |
bug#11447: 24.1.50; notifications-notify eats keystrokes |
Date: |
Fri, 11 May 2012 11:20:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
>>> (with-timeout ((if timeout (/ timeout 1000.0) 25))
>>> (while (eq (gethash key dbus-return-values-table :ignore) :ignore)
>>> ! (let ((event (let (unread-command-events) (read-event nil nil 0.1))))
>>> ! (when (and event (not (ignore-errors (dbus-check-event event))))
>>> ! (setq unread-command-events
>>> ! (append unread-command-events (list event)))))))
>>
>> Shouldn't this code use input-pending-p instead?
> 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.
> With the example in this bug report, I get blocked then.
What do you mean by "blocked"?
> A key might be placed in `unread-command-events', and I still must
> handle it.
What do you mean by "handle it"?
Could let-binding unread-command-events around the call to sit-for
address the issue?
Stefan
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Peter Münster, 2012/05/10
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Michael Albinus, 2012/05/11
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Peter Münster, 2012/05/11
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Stefan Monnier, 2012/05/11
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Michael Albinus, 2012/05/11
- bug#11447: 24.1.50; notifications-notify eats keystrokes,
Stefan Monnier <=
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Michael Albinus, 2012/05/11
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Stefan Monnier, 2012/05/11
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Michael Albinus, 2012/05/13
- Message not available
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Michael Albinus, 2012/05/13
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Stefan Monnier, 2012/05/13
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Michael Albinus, 2012/05/13
- bug#11447: 24.1.50; notifications-notify eats keystrokes, Stefan Monnier, 2012/05/13