GNU bug report logs - #39658
26.3; can't edit file with terminal escape sequences

Previous Next

Package: emacs;

Reported by: frederik <at> ofb.net

Date: Tue, 18 Feb 2020 13:50:01 UTC

Severity: normal

Found in version 26.3

Full log


View this message in rfc822 format

From: frederik <at> ofb.net
To: Mattias EngdegÄrd <mattiase <at> acm.org>, Eli Zaretskii <eliz <at> gnu.org>
Cc: Robert Pluim <rpluim <at> gmail.com>, 39658 <at> debbugs.gnu.org
Subject: bug#39658: 26.3; can't edit file with terminal escape sequences
Date: Tue, 18 Feb 2020 08:58:50 -0800
Thank you Mattias for figuring that out, and Eli for being more patient than I.

I think I'll let the professionals handle it from here.

On Tue, Feb 18, 2020 at 05:02:29PM +0100, Mattias EngdegÄrd wrote:
>> My guess is that rendering the escape sequences in the problem file is causing some kind of quadratic complexity.
>
>It looks like it's the left square brackets ('['). Take them out and it's fast.
>

On Tue, Feb 18, 2020 at 06:08:55PM +0200, Eli Zaretskii wrote:
>> Date: Tue, 18 Feb 2020 05:48:59 -0800
>> From: frederik <at> ofb.net
>>
>> To reproduce, open the attached file in Emacs, and type C-x C-n. On my system Emacs uses 100% of CPU, indefinitely.
>
>On my system, visiting this file takes 36 sec of CPU time.  Which is
>long, but is not indefinitely.
>
>If someone wants to investigate this case, I'd start with visiting the
>file after "M-x profiler-start".  Then look at the hot spot(s).
>





This bug report was last modified 5 years and 120 days ago.

Previous Next


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