all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Anders Lindgren <andlind@gmail.com>
To: 16505@debbugs.gnu.org
Cc: larsi@gnus.org, Dmitry Antipov <dmantipov@yandex.ru>
Subject: bug#16505: Acknowledgement (24.3.50; Emacs seems to loose key events when typing fast (seriously))
Date: Sat, 8 Feb 2014 21:04:13 +0100	[thread overview]
Message-ID: <CABr8ebaceEKknz4zRgQfeS4QxrNKhPuwDGQt5FfatcAhtBC0yw@mail.gmail.com> (raw)
In-Reply-To: <CABr8ebYsWn13qPFB+R9HXDX5Zg=N8o=G36f8QfdtEk+d1PiyAg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2931 bytes --]

Hi!

I have narrowed down the possible bzr revision candidates.

By back-applying 111505 into earlier revisions I have concluded that 110812
contains the problem. To ensure that the problem wasn't caused by 111505
itself, I also applied it to 110785 (the last revision without this
problem) without introducing the "key dropped" problem. In other words, the
problem must have been introduced somewhere in the range 110796..110811.

Unfortunately, I get a build error below for these revisions. The build
error is "not enough room for load commands for new __DATA segments", which
is issued from deep inside the "unexmacosx.c" module. I have no insight
into the "unexec" process, so this has stopped me from narrowing down the
problem further.

Any suggestions on moving forward would be welcome -- for example, would it
be possible to run Emacs undumped, avoiding unexec all together?

    -- Anders


On Fri, Feb 7, 2014 at 10:03 PM, Anders Lindgren <andlind@gmail.com> wrote:

> Hi!
>
> I understand your scepticism about my fingers ;) However, the problem is
> quite apparent, I get bitten by it several times per day. Also, it occurs
> consistently when doing the <tab> <down> sequence in recent versions from
> the trunk. On older versions, however, I don't see this behaviour at all.
>
> Anyway, I tried to script this using AppleScript, asking the "System
> Event" to send keycodes for <tab> and <down>. Unfortunately, Emacs behaves
> perfectly and doesn't loose any key event when scripted.
>
> Just for the record, this is the script I used:
>
> repeat 100 times
>     tell application "System Events" to key code 48      -- TAB
>     tell application "System Events" to key code 125     -- DOWN
> end
>
> I started it from within emacs using M-! osascript xxx.osa RET
>
> One approach to find the faulty revision is to back-patch the fix in
> 111505 into the revisions 110812-111504 to see if one of those revisions
> introduced the problem. (If the problem is in the sequence 110786-110811,
> it will be harder to track down, as they don't build properly). I will try
> to find the time to do this, but I can't give any guarantees...
>
>     -- Anders
>
>
> On Fri, Feb 7, 2014 at 5:06 PM, Dmitry Antipov <dmantipov@yandex.ru>wrote:
>
>> On 02/07/2014 06:17 PM, Anders Lindgren wrote:
>>
>>  Here, a <tab> is missing, which explains the indentation problems.
>>>
>>
>> Hmm...IMHO we shouldn't believe in anyone's fingers in such a case :-).
>>
>> Do you have a tool to fake user input? On X, we have xdotool. I've tried
>> to insert 100 <tab> and 100 <down> with 0.05s delay between each
>> "keypress":
>>
>> xdotool selectwindow ==> (record window ID)
>>
>> seq 99 -1 0 | xargs -n1 sh -c 'xdotool key --window $ID 23 && sleep 0.05
>> && xdotool key --window $ID 116 && sleep 0.05'
>>
>> (23 is X keycode for <tab> and <116> for <down>) and there was 100 <tab>
>> and
>> 100 <down>, respectively...
>>
>> Dmitry
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 4368 bytes --]

  reply	other threads:[~2014-02-08 20:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 15:25 bug#16505: 24.3.50; Emacs seems to loose key events when typing fast (seriously) Anders Lindgren
     [not found] ` <handler.16505.B.139023152917540.ack@debbugs.gnu.org>
2014-01-20 15:36   ` bug#16505: Acknowledgement (24.3.50; Emacs seems to loose key events when typing fast (seriously)) Anders Lindgren
2014-02-07 14:17     ` Anders Lindgren
2014-02-07 16:06       ` Dmitry Antipov
2014-02-07 21:03         ` Anders Lindgren
2014-02-08 20:04           ` Anders Lindgren [this message]
2014-02-08 20:29             ` Eli Zaretskii
2014-02-09 12:56               ` Anders Lindgren
2014-02-16  7:42                 ` Anders Lindgren
2014-02-16  9:52                   ` Jan D.
2014-02-08  0:14         ` Lars Ingebrigtsen
2014-02-08  8:47           ` Eli Zaretskii
2014-02-08 10:22             ` Lars Ingebrigtsen
2014-02-08 10:53               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABr8ebaceEKknz4zRgQfeS4QxrNKhPuwDGQt5FfatcAhtBC0yw@mail.gmail.com \
    --to=andlind@gmail.com \
    --cc=16505@debbugs.gnu.org \
    --cc=dmantipov@yandex.ru \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.