From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#45652: so-long mode not triggered despite big file with very long lines Date: Tue, 12 Jan 2021 15:30:03 +1300 Message-ID: <80d8793e5161ecd5857642a1751f2ff1@webmail.orcon.net.nz> References: <877dosudon.5.fsf@jidanni.org> <87k0sjljjp.5.fsf@jidanni.org> <7c08fce6-843b-6b7a-ab02-e947a9952a1b@orcon.net.nz> <87y2gzvzwh.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36342"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 45652@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 12 03:34:24 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 1kz9Vo-0009KY-53 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 03:34:24 +0100 Original-Received: from localhost ([::1]:58586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz9Vn-0006MK-3a for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 21:34:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz9SZ-0003uO-FX for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 21:31:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz9SY-0003Eu-5Q for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 21:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kz9SY-0007to-22 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 21:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2021 02:31:01 +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.161041860930299 (code B ref 45652); Tue, 12 Jan 2021 02:31:01 +0000 Original-Received: (at 45652) by debbugs.gnu.org; 12 Jan 2021 02:30:09 +0000 Original-Received: from localhost ([127.0.0.1]:58812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz9Rg-0007sd-TO for submit@debbugs.gnu.org; Mon, 11 Jan 2021 21:30:09 -0500 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:45725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz9Re-0007rT-Vk for 45652@debbugs.gnu.org; Mon, 11 Jan 2021 21:30:08 -0500 Original-Received: from [10.253.37.70] (port=9873 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1kz9Rb-0002YN-TX; Tue, 12 Jan 2021 15:30:04 +1300 Original-Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 12 Jan 2021 15:30:03 +1300 In-Reply-To: <87y2gzvzwh.5.fsf@jidanni.org> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:197763 Archived-At: On 2021-01-12 12:04, 積丹尼 Dan Jacobson wrote: > Yup, definitely add so-long mode to those choices. As even with > "literally" the problems come when the user hits ^S and searches > within possible long lines. I think that so-long may not perform any better, but it would still be *different* (and hence potentially useful), so I think it's probably a good idea. > PS> You could always configure Emacs to open all .har files in > PS> so-long-mode, if this is the only way you encounter them? > > Any archive format that that day has some nasty file at the bottom > of it will have the same problem. Oh, it's an archive format? In that case Emacs should probably learn to treat it similarly to tar files, etc? If the "long line" is actually some distinct file with an archive, and Emacs treated it as an archive, then opening that file from within the archive would be more likely to trigger so-long when necessary. Looking at https://en.wikipedia.org/wiki/.har I can see why js-mode has been associated, but it's surely not the ideal solution. > I was still using C-h v as today is the first time I heard of C-h o. Remember that C-h v is only for variables. C-h f is for functions (which would have worked here), and C-h o is a good choice when you know what something is named, but don't know exactly what it is. -Phil