Subject: bug#17648: 24.4.50; regression: emacsclient under screen (1) slow for some values of TERM

From: Stefan Monnier <[email-masked]>
Date: Sat, 31 May 2014 21:23:28 -0400

> almost instantaneously shows the scratch buffer (or some other
> last used buffer), then for 2 secs nothing happens, then the
> window shows the buffer which corresponds to some-file-name and
> one is able to work with it.

> This happens for some values of TERM.

Can you describe as precisely as possible the text-terminal you're
using, and tell us what C-h l says right after this 2s delay?

> I did a git bisect on the repo and this produced:
[...]
>     2014-04-17  Daniel Colascione  <[email-masked]>
>         Add support for bracketed paste mode; add infrastructure for
>         managing terminal mode enabling and disabling automatically.

Dan, it looks like the magic sequence to enable bracketed paste mode
will need to use some version checking code :-(
Can you take a look at it?

        Stefan