From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68531: 29.1; garbage inserted in the buffer when starting Emacs in xterm Date: Wed, 17 Jan 2024 16:42:28 +0200 Message-ID: <83il3saunf.fsf@gnu.org> References: <87wms8uj2z.fsf@vinc17.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68531@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 17 15:43:27 2024 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 1rQ78Y-0009Cq-GE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Jan 2024 15:43:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQ78C-0007d6-45; Wed, 17 Jan 2024 09:43:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQ78A-0007ch-I7 for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2024 09:43:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQ789-0008Uz-NG for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2024 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQ78A-0003YC-5W for bug-gnu-emacs@gnu.org; Wed, 17 Jan 2024 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jan 2024 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68531 X-GNU-PR-Package: emacs Original-Received: via spool by 68531-submit@debbugs.gnu.org id=B68531.170550256713621 (code B ref 68531); Wed, 17 Jan 2024 14:43:02 +0000 Original-Received: (at 68531) by debbugs.gnu.org; 17 Jan 2024 14:42:47 +0000 Original-Received: from localhost ([127.0.0.1]:51182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQ77u-0003Xd-Ui for submit@debbugs.gnu.org; Wed, 17 Jan 2024 09:42:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQ77s-0003XI-0R for 68531@debbugs.gnu.org; Wed, 17 Jan 2024 09:42:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQ77k-0008Pn-U1; Wed, 17 Jan 2024 09:42:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QkkSwZtGcyXLtUHh19LvOl23hql9xuw2znhc3Lmyi3o=; b=ptU9pK9KvED2 luQ/XSPMejDRGIFRiwZ8AbQKhdKZ4Tr1GRFw40DQSDPQL22IXv2bJDeO9v6i99WbreJ4dQANtMG+r I9E7gKAPwExGtaBUzz3gSV3k5IwZL9IrgK+LM+iYci7BjK27dHZ+bfxX4FFUHA52xOvaxBuOSM7sI VKlimCssME3G5tYTQsOzzjawxw/L4Ml3Oo8LiiPbFwcmsL9M6W4r8kYFzw5VLpwEzZBZlRwBlLwna K15Jsl/kyQP5RtDFqctrMRhc1D5XhEmntu2H4enJMIMocBDhzSjUl5Tgzj9pZ5hDp/kkz3dROzGxS bZA0WgBdK/5T5CY39d6Uxw==; In-Reply-To: <87wms8uj2z.fsf@vinc17.net> (message from Vincent Lefevre on Wed, 17 Jan 2024 15:32:04 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278388 Archived-At: > Cc: Vincent Lefevre > From: Vincent Lefevre > Date: Wed, 17 Jan 2024 15:32:04 +0100 > > > 1. Create a large file "foo", e.g. with > echo `seq 10000000` > foo > > 2. In an xterm, connect to the machine via ssh (AFAIK to introduce > a delay in the transmissions). > > 3. Type (without ): > /usr/bin/emacs -nw -Q --eval="(setq large-file-warning-threshold > 100000000)" foo > > 4. Type twice very quickly. > > I sometimes get garbage near the beginning of the buffer, after a > blank line (due to ): > > 11;rgb:0000/0000/00001 2 3 4 5 6 7 8 [...] It's not garbage, it's Emacs querying the terminal about its background mode, see xterm--report-background-handler. I'm guessing Emacs fails to read the response because visiting that file takes too much time. Try playing with the value of xterm-query-timeout. Or avoid visiting files with such humongously long lines from the command line.