unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21123: emacsclient silently eats keys on startup
@ 2015-07-23 21:03 William Hatch
  2015-07-24  7:08 ` Andreas Schwab
  2019-09-29 22:37 ` Stefan Kangas
  0 siblings, 2 replies; 5+ messages in thread
From: William Hatch @ 2015-07-23 21:03 UTC (permalink / raw)
  To: 21123

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

When emacsclient is launched with -t (terminal mode), there is a short time
when I press keys and they have no effect.  Most commonly this happens when
I open a file knowing that I want to search for something, so I immediately
type backslash (bound to evil-search-forward), then the text I want to
search for.  When the slash and potentially some of the search term are
eaten, strange things happen when emacs suddenly starts interpreting the
middle of this key sequence as the start of it.

This doesn't happen when emacs is started normally in a terminal.  One of
my favorite things about using a terminal is that I can type ahead when I
know what I'm doing, and I don't have to wait for the GUI to catch up to
me.  Emacsclient breaks this, and it is especially noticeable over ssh.  I
have confirmed that this happens with no init file, so I'm sure it's not
just something in my configuration.

Confirmed in emacs versions 24.5.50.1 and 25.0.50.1.

Thanks (emacs is the best),
William

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21123: emacsclient silently eats keys on startup
  2015-07-23 21:03 bug#21123: emacsclient silently eats keys on startup William Hatch
@ 2015-07-24  7:08 ` Andreas Schwab
  2015-07-24 15:17   ` William G Hatch
  2019-09-29 22:37 ` Stefan Kangas
  1 sibling, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2015-07-24  7:08 UTC (permalink / raw)
  To: William Hatch; +Cc: 21123

William Hatch <willghatch@gmail.com> writes:

> When emacsclient is launched with -t (terminal mode), there is a short time
> when I press keys and they have no effect.

How short is that time?  I couldn't reproduce it when trying this:

$ sleep 5; emacsclient -t

and then starting to type ahead.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21123: emacsclient silently eats keys on startup
  2015-07-24  7:08 ` Andreas Schwab
@ 2015-07-24 15:17   ` William G Hatch
  2016-04-30 12:02     ` Marcin Borkowski
  0 siblings, 1 reply; 5+ messages in thread
From: William G Hatch @ 2015-07-24 15:17 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 21123

On Fri, Jul 24, 2015 at 09:08:17AM +0200, Andreas Schwab wrote:
>William Hatch <willghatch@gmail.com> writes:
>
>> When emacsclient is launched with -t (terminal mode), there is a short time
>> when I press keys and they have no effect.
>
>How short is that time?  I couldn't reproduce it when trying this:
>
>$ sleep 5; emacsclient -t
>
>and then starting to type ahead.

Interestingly I can't reproduce it that way either... so maybe it has to be at
the exact time emacs is starting up.  On a new machine locally I have to be
pretty quick to reproduce it, but it's still something I'll occasionally accidentally
do, but it happens more often over ssh.  It seems to happen during the time that
emacsclient still shows the scratch buffer but before it opens up the file I tell
it to open.  But the keys don't go to the scratch buffer either, so I'm not sure
what's going on.

It's hard to get to work with an empty init file -- it happens more when
there are mode hooks or something that run when emacsclient opens a file.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21123: emacsclient silently eats keys on startup
  2015-07-24 15:17   ` William G Hatch
@ 2016-04-30 12:02     ` Marcin Borkowski
  0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2016-04-30 12:02 UTC (permalink / raw)
  To: William G Hatch; +Cc: Andreas Schwab, 21123

On 2015-07-24, at 09:17, William G Hatch <willghatch@gmail.com> wrote:

> On Fri, Jul 24, 2015 at 09:08:17AM +0200, Andreas Schwab wrote:
>>William Hatch <willghatch@gmail.com> writes:
>>
>>> When emacsclient is launched with -t (terminal mode), there is a short time
>>> when I press keys and they have no effect.
>>
>>How short is that time?  I couldn't reproduce it when trying this:
>>
>>$ sleep 5; emacsclient -t
>>
>>and then starting to type ahead.
>
> Interestingly I can't reproduce it that way either... so maybe it has to be at
> the exact time emacs is starting up.  On a new machine locally I have to be
> pretty quick to reproduce it, but it's still something I'll occasionally accidentally
> do, but it happens more often over ssh.  It seems to happen during the time that
> emacsclient still shows the scratch buffer but before it opens up the file I tell
> it to open.  But the keys don't go to the scratch buffer either, so I'm not sure
> what's going on.
>
> It's hard to get to work with an empty init file -- it happens more when
> there are mode hooks or something that run when emacsclient opens a file.

Hi,

just asking: does this persist?  If yes, can you give a recipe for
reproducing it, possibly starting with emacs -Q?

Best,

-- 
Marcin





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21123: emacsclient silently eats keys on startup
  2015-07-23 21:03 bug#21123: emacsclient silently eats keys on startup William Hatch
  2015-07-24  7:08 ` Andreas Schwab
@ 2019-09-29 22:37 ` Stefan Kangas
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2019-09-29 22:37 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: William G Hatch, Andreas Schwab, 21123-done

Marcin Borkowski <mbork@mbork.pl> writes:

> On 2015-07-24, at 09:17, William G Hatch <willghatch@gmail.com> wrote:
>
>> On Fri, Jul 24, 2015 at 09:08:17AM +0200, Andreas Schwab wrote:
>>>William Hatch <willghatch@gmail.com> writes:
>>>
>>>> When emacsclient is launched with -t (terminal mode), there is a short time
>>>> when I press keys and they have no effect.
>>>
>>>How short is that time?  I couldn't reproduce it when trying this:
>>>
>>>$ sleep 5; emacsclient -t
>>>
>>>and then starting to type ahead.
>>
>> Interestingly I can't reproduce it that way either... so maybe it has to be at
>> the exact time emacs is starting up.  On a new machine locally I have to be
>> pretty quick to reproduce it, but it's still something I'll occasionally accidentally
>> do, but it happens more often over ssh.  It seems to happen during the time that
>> emacsclient still shows the scratch buffer but before it opens up the file I tell
>> it to open.  But the keys don't go to the scratch buffer either, so I'm not sure
>> what's going on.
>>
>> It's hard to get to work with an empty init file -- it happens more when
>> there are mode hooks or something that run when emacsclient opens a file.
>
> Hi,
>
> just asking: does this persist?  If yes, can you give a recipe for
> reproducing it, possibly starting with emacs -Q?

More information was requested, but none was given within 3 years, so
I'm closing this bug report.  If this is still an issue, please reopen
this bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-29 22:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-23 21:03 bug#21123: emacsclient silently eats keys on startup William Hatch
2015-07-24  7:08 ` Andreas Schwab
2015-07-24 15:17   ` William G Hatch
2016-04-30 12:02     ` Marcin Borkowski
2019-09-29 22:37 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).