From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#25097: 25.1; Scratch buffer flashes with emacsclient and xterm Date: Tue, 11 Aug 2020 17:35:27 -0700 Message-ID: References: <87vabwl4pf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16457"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Jake , 25097@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 02:36:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5ekV-0004Bk-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 02:36:11 +0200 Original-Received: from localhost ([::1]:58374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5ekU-0006Fb-Ow for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 20:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5ekM-0006Em-80 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 20:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5ekL-0006bd-Ty for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 20:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5ekL-0006bs-NZ for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 20:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 00:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25097 X-GNU-PR-Package: emacs Original-Received: via spool by 25097-submit@debbugs.gnu.org id=B25097.159719253625357 (code B ref 25097); Wed, 12 Aug 2020 00:36:01 +0000 Original-Received: (at 25097) by debbugs.gnu.org; 12 Aug 2020 00:35:36 +0000 Original-Received: from localhost ([127.0.0.1]:42106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5ejw-0006au-AV for submit@debbugs.gnu.org; Tue, 11 Aug 2020 20:35:36 -0400 Original-Received: from mail-yb1-f177.google.com ([209.85.219.177]:44210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5ejt-0006ae-DO for 25097@debbugs.gnu.org; Tue, 11 Aug 2020 20:35:34 -0400 Original-Received: by mail-yb1-f177.google.com with SMTP id i10so411579ybt.11 for <25097@debbugs.gnu.org>; Tue, 11 Aug 2020 17:35:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=vEN7aqu2VCJAUAlCuwCCpf5HmBgB7vywa3uehlDIH8A=; b=jxNClo2upUbQnyJ9hTmDUD1BSd4N5tBNHUymYWJWx5EXlttw5jPNhwFukOVOAanBhx TIyKaT0sdU6Zc5R19Zdptmt5GLB5CUxewosjc2Gfq0FNqegsC/ULKFM/sjZQ7i5Rpxom 3GRepsmv07sYKbaS+LEPQDQDEI5Tj0OUR0bGwBQdjcPcwclBqFaiA84VEZK5Qkvz9AER 0WiVLnTf8s9XjY7Fj4v/7pc4u/+xUX2wtOnKrrAGbw1sTEAH3I8Dl78Q5oSiDYqTwRDl FspZvur5X+1GOPkVToBYwi10Y8Jtbbe5kAtFmKAAB8eFI6NB7uKd10FGXURSHLxdAhX0 6zJQ== X-Gm-Message-State: AOAM533K99rm/lvZShMvCPXmOs+ZS7kHteP71rsy8t1Lc5wNbWRgAUJ0 97NF1GQxVWSYVAvBu1jqVxeh7fJUwcLulUv5zTk= X-Google-Smtp-Source: ABdhPJwRqCfDkRwiY7Hdipde+tlyajRjHjzJjrrHY5JoUKzcpK4bzPHGbXZQtZtiwRT+qIg+/jI9nF5/zW5ogep/ZEM= X-Received: by 2002:a25:880e:: with SMTP id c14mr53354675ybl.181.1597192527716; Tue, 11 Aug 2020 17:35:27 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Aug 2020 17:35:27 -0700 In-Reply-To: <87vabwl4pf.fsf@gmail.com> (Noam Postavsky's message of "Wed, 09 May 2018 20:44:28 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184707 Archived-At: Noam Postavsky writes: > Jake 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 Should we just go ahead and change it, then? From reading the SE comment, there seems to be no concrete reason to not set it to nil by default. Best regards, Stefan Kangas