GNU bug report logs - #25097
25.1; Scratch buffer flashes with emacsclient and xterm

Previous Next

Package: emacs;

Reported by: Jake <jake.waksbaum <at> gmail.com>

Date: Fri, 2 Dec 2016 22:24:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> gmail.com>
To: Jake <jake.waksbaum <at> gmail.com>
Cc: 25097 <at> debbugs.gnu.org
Subject: bug#25097: 25.1; Scratch buffer flashes with emacsclient and xterm
Date: Wed, 09 May 2018 20:44:28 -0400
Jake <jake.waksbaum <at> gmail.com> writes:

> When I run
>
>      emacs -Q --daemon
>      emacsclient -t foo.txt
>
> to open some file foo.txt, the scratch buffer displays for 2-3 seconds
> before the buffer for the file actually opens. My TERM environment
> variable is set to "xterm-256color", and if I change it to
> "screen-256color" this problem goes away. Also if I create a file
> containing only "(setq-default xterm-query-timeout nil)" and load that
> with the -l flag, the problem goes away. Presumably there is a purpose
> to this timeout, so just doing this is probably not ideal. It was
> added in commit cc8f96e in response to bug#12345.

That commit actually changed the timeout from a hardcoded 2, and makes
the timeout configurable.  So I think setting xterm-query-timeout to nil
is the right thing here.  Perhaps even a nil xterm-query-timeout should
be the default?

Here's another case where that seems to help:

https://emacs.stackexchange.com/questions/16878/0950c-escape-code-is-inserted-with-typeahead-in-terminal-emacs




This bug report was last modified 3 years and 167 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.