GNU bug report logs - #44809
Say "Consider switching so-long mode on" when detecting long line files

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 23 Nov 2020 01:05:01 UTC

Severity: minor

Merged with 44818

Found in version 27.0.91

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44809 in the body.
You can then email your comments to 44809 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44809; Package emacs. (Mon, 23 Nov 2020 01:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Nov 2020 01:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: One very long line of <中文> XML tags puts emacs
 out of business
Date: Mon, 23 Nov 2020 09:04:17 +0800
1. Visit https://data.gov.tw/dataset/34315 .
2. Download e.g., B臺中市 .
3. Unzip, and open one of the more whopping XML files,

$ ls -ogS Downloads/B_XML/ | head -n 5
-rw-r--r-- 1 3091875 2020-04-13  b_4602.xml
-rw-r--r-- 1 3087978 2020-04-13  b_0755.xml
-rw-r--r-- 1 2874539 2020-04-13  b_5709.xml
-rw-r--r-- 1 2829385 2020-04-13  b_0530.xml

Press M-> [end-of-buffer]. Now press M-<.

You'll see the combination of one very long line, UTF-8 tags (<國有>),
etc. causes emacs to, well, only be able to process C-g's and beep.

Before long one can only put it out of its misery with
$ killall -1 emacs.
emacs-version "27.1"




Forcibly Merged 44809 44818. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 24 Nov 2020 07:07:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44809; Package emacs. (Tue, 24 Nov 2020 07:08:02 GMT) Full text and rfc822 format available.

Message #10 received at 44809 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44809 <at> debbugs.gnu.org
Subject: Re: bug#44809: One very long line of <中文> XML
 tags puts emacs out of business
Date: Tue, 24 Nov 2020 08:05:54 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> Before long one can only put it out of its misery with
> $ killall -1 emacs.

Yes, this is a general Emacs problem.  Consider switching so-long mode
on.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44809; Package emacs. (Fri, 27 Nov 2020 21:48:04 GMT) Full text and rfc822 format available.

Message #13 received at 44809 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: control <at> debbugs.gnu.org, 44809 <at> debbugs.gnu.org
Subject: Re: bug#44809: Warn that current file needs so-long mode
Date: Sat, 28 Nov 2020 03:43:25 +0800
retitle 44809 Say "Consider switching so-long mode on" when detecting long line files
thanks

>>>>> "LI" == Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> Before long one can only put it out of its misery with
>> $ killall -1 emacs.

LI> Yes, this is a general Emacs problem.  Consider switching so-long mode
LI> on.

OK. SO LONG as emacs also says that automatically,
when detecting such files.
Else the user will never know.
And ends up reporting more bugs than necessary.

Then at least the user will know something is up and won't try ESC >
etc. locking up emacs.




Changed bug title to 'Say "Consider switching so-long mode on" when detecting long line files' from 'One very long line of <中文> XML tags puts emacs out of business' Request was from 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> to control <at> debbugs.gnu.org. (Fri, 27 Nov 2020 21:48:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44809; Package emacs. (Sun, 29 Nov 2020 09:51:01 GMT) Full text and rfc822 format available.

Message #18 received at 44809 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44809 <at> debbugs.gnu.org
Subject: Re: bug#44809: Warn that current file needs so-long mode
Date: Sun, 29 Nov 2020 10:50:03 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> retitle 44809 Say "Consider switching so-long mode on" when detecting
> long line files

The plan is to have so-long mode on by default in Emacs 28, but there
are some things that have to be tweaked a bit first, if I understand
things correctly.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44809; Package emacs. (Sat, 23 Jul 2022 08:57:01 GMT) Full text and rfc822 format available.

Message #21 received at 44809 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44818 <at> debbugs.gnu.org, 44809 <at> debbugs.gnu.org
Subject: Re: bug#44818: Say "Consider switching so-long mode on" when
 detecting long line files
Date: Sat, 23 Jul 2022 10:56:19 +0200
These issues have been fixed by Gregory in Emacs 29 -- Emacs no longer
needs to rely on so-long, but works fine out of the box with these sorts
of files, so I'm closing this bug report.





bug marked as fixed in version 29.1, send any further explanations to 44818 <at> debbugs.gnu.org and Devon Sean McCullough <Devon2020 <at> jovi.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 23 Jul 2022 08:57:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Aug 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 298 days ago.

Previous Next


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