From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39658: 26.3; can't edit file with terminal escape sequences Date: Tue, 18 Feb 2020 18:05:21 +0200 Message-ID: <83wo8jlw3i.fsf@gnu.org> References: <20200218134859.GA1035@localhost> <20200218141510.GB1035@localhost> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="39113"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, 39658@debbugs.gnu.org To: frederik@ofb.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 18 17:06: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 1j45O0-000A1Z-0a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 17:06:12 +0100 Original-Received: from localhost ([::1]:37594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j45Nz-0001I4-2a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Feb 2020 11:06:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42180) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j45Nq-0001Hs-Vl for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 11:06:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j45Nq-0006vJ-2m for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 11:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j45Np-0006vD-Vj for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 11:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j45Np-0003Ys-RP for bug-gnu-emacs@gnu.org; Tue, 18 Feb 2020 11:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Feb 2020 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39658 X-GNU-PR-Package: emacs Original-Received: via spool by 39658-submit@debbugs.gnu.org id=B39658.158204194813672 (code B ref 39658); Tue, 18 Feb 2020 16:06:01 +0000 Original-Received: (at 39658) by debbugs.gnu.org; 18 Feb 2020 16:05:48 +0000 Original-Received: from localhost ([127.0.0.1]:41174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j45Nc-0003YR-6E for submit@debbugs.gnu.org; Tue, 18 Feb 2020 11:05:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j45NZ-0003YD-Ds for 39658@debbugs.gnu.org; Tue, 18 Feb 2020 11:05:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j45NU-0006jP-6G; Tue, 18 Feb 2020 11:05:40 -0500 Original-Received: from [176.228.60.248] (port=2505 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j45NE-0000Ck-NY; Tue, 18 Feb 2020 11:05:35 -0500 In-reply-to: <20200218141510.GB1035@localhost> (frederik@ofb.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176196 Archived-At: > Date: Tue, 18 Feb 2020 06:15:10 -0800 > From: frederik@ofb.net > Cc: 39658@debbugs.gnu.org > > >The problem is more likely to be the extremely long lines in the > >file. If you have emacs-27 or emacs-master, you can try 'M-x > >global-so-long-mode' before visiting the file, which attempts to > >improve Emacs' behaviour in such cases. > > Yes, the fact that it is all on one line is likely relevant. I haven't tried installing Emacs 27, but I note that a file 10x as long as the one I attached, consisting of the letter "t" repeated, can be opened and edited without difficulty. My guess is that rendering the escape sequences in the problem file is causing some kind of quadratic complexity. Did you try "M-x find-file-literally RET"? I'm guessing Emacs tries to interpret the escape sequences as some variant of ISO-2022 encoding or something.