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#45652: so-long mode not triggered despite big file with very long lines Date: Tue, 12 Jan 2021 17:28:00 +0200 Message-ID: <83ft36dvjz.fsf@gnu.org> References: <877dosudon.5.fsf@jidanni.org> <87wnwjco89.fsf@gnus.org> <877dojclv5.fsf@gnus.org> <8735z7chdj.fsf@gnus.org> <9463451af6d023fb4595ffa9182615b6@webmail.orcon.net.nz> <87sg769vjd.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, 45652@debbugs.gnu.org, jidanni@jidanni.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 12 16:28:12 2021 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 1kzLae-00088g-8a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 16:28:12 +0100 Original-Received: from localhost ([::1]:58678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzLad-00078R-B8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 10:28:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzLaV-00074h-Sf for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 10:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzLaU-0007Xs-67 for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 10:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzLaU-0004ap-28 for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2021 10:28: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, 12 Jan 2021 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45652 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 45652-submit@debbugs.gnu.org id=B45652.161046527717643 (code B ref 45652); Tue, 12 Jan 2021 15:28:02 +0000 Original-Received: (at 45652) by debbugs.gnu.org; 12 Jan 2021 15:27:57 +0000 Original-Received: from localhost ([127.0.0.1]:32861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzLaO-0004aV-KN for submit@debbugs.gnu.org; Tue, 12 Jan 2021 10:27:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzLaK-0004aD-T0 for 45652@debbugs.gnu.org; Tue, 12 Jan 2021 10:27:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33353) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzLaF-0007TF-Dz; Tue, 12 Jan 2021 10:27:47 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3360 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kzLaE-0001nI-KE; Tue, 12 Jan 2021 10:27:47 -0500 In-Reply-To: <87sg769vjd.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 12 Jan 2021 13:41:58 +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:197799 Archived-At: > From: Lars Ingebrigtsen > Date: Tue, 12 Jan 2021 13:41:58 +0100 > Cc: 45652@debbugs.gnu.org, > 積丹尼 Dan Jacobson > > > I'm not sure that so-long itself would find it useful to know any kind > > of averages, but longest line is obviously useful, and the number of > > lines sounds more or less like a freebie, and might be useful too. > > OK, I'll write up a simple function, and we can tweak it later, if it > turns out that more info is useful. You are going to use find_newline_no_quit or somesuch, I hope?