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#44818: 27.0.91; wedged Date: Tue, 24 Nov 2020 17:39:32 +0200 Message-ID: <83r1oiu5l7.fsf@gnu.org> References: <83a6v8vzok.fsf@gnu.org> <877dqb9qxb.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4198"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Devon2020@jovi.net, 44818@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 24 16:40:20 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 1khaQW-0000ya-7u for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 16:40:20 +0100 Original-Received: from localhost ([::1]:50062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khaQV-0008Tl-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 10:40:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khaQE-0008TO-Rp for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 10:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khaQE-0003Oi-KM for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 10:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khaQE-0005Xc-GM for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 10:40: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: Tue, 24 Nov 2020 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44818 X-GNU-PR-Package: emacs Original-Received: via spool by 44818-submit@debbugs.gnu.org id=B44818.160623238121269 (code B ref 44818); Tue, 24 Nov 2020 15:40:02 +0000 Original-Received: (at 44818) by debbugs.gnu.org; 24 Nov 2020 15:39:41 +0000 Original-Received: from localhost ([127.0.0.1]:60944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khaPt-0005Wz-3s for submit@debbugs.gnu.org; Tue, 24 Nov 2020 10:39:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khaPs-0005Wn-3W for 44818@debbugs.gnu.org; Tue, 24 Nov 2020 10:39:40 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46222) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khaPm-0003NR-In; Tue, 24 Nov 2020 10:39:34 -0500 Original-Received: from [176.228.60.248] (port=3356 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1khaPl-0002UI-Bx; Tue, 24 Nov 2020 10:39:34 -0500 In-Reply-To: <877dqb9qxb.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 24 Nov 2020 08:04:16 +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" Xref: news.gmane.io gmane.emacs.bugs:194079 Archived-At: > From: Lars Ingebrigtsen > Cc: Devon Sean McCullough , 44818@debbugs.gnu.org > Date: Tue, 24 Nov 2020 08:04:16 +0100 > > Eli Zaretskii writes: > > > When you visit such a long file in Emacs 27.1, you should see a > > suggestion to visit it literally; take it. > > > > A more general solution is to turn on so-long mode. > > This is such a general problem that people bump into all the time that I > think Emacs should have an even more general solution, and it should be > on by default. We generally intended to turn on so-long-mode by default. We just didn't get our act together in time for Emacs 27, as there are a few bits to get straight before we could make it the default. > The long-file warning isn't sufficient -- there's plenty of smaller > files that have this problem, too. so-long-mode is supposed to detect those cases reliably, not just by file size, but also by line size and other indications. > Why doesn't Emacs just check for long lines (in the C code, for speed) > when opening files, and offer the "visit literally?" if it detects them? That's what so-long-mode does, AFAIR. It was designed to solve these use cases, and AFAIR it does that well enough to not need to invent yet another similar wheel. We should try to finish the bits that aren't yet finalized, and turn it on by default as soon as we can.