From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#45652: so-long mode not triggered despite big file with very long lines Date: Tue, 12 Jan 2021 07:04:30 +0800 Message-ID: <87y2gzvzwh.5.fsf@jidanni.org> References: <877dosudon.5.fsf@jidanni.org> <87k0sjljjp.5.fsf@jidanni.org> <7c08fce6-843b-6b7a-ab02-e947a9952a1b@orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45652@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 12 00:05:25 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 1kz6FX-0003uT-1B for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Jan 2021 00:05:23 +0100 Original-Received: from localhost ([::1]:42598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz6FM-0003Gd-6S for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 18:05:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz6FC-0003FF-Hj for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 18:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz6FC-0005JS-Ai for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 18:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kz6FC-0002yp-6D for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 18:05:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <877dosudon.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2021 23:05: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.161040628111419 (code B ref 45652); Mon, 11 Jan 2021 23:05:02 +0000 Original-Received: (at 45652) by debbugs.gnu.org; 11 Jan 2021 23:04:41 +0000 Original-Received: from localhost ([127.0.0.1]:58692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz6Er-0002y7-A0 for submit@debbugs.gnu.org; Mon, 11 Jan 2021 18:04:41 -0500 Original-Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:46555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz6Eo-0002xv-3n for 45652@debbugs.gnu.org; Mon, 11 Jan 2021 18:04:39 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CDC6D183513; Mon, 11 Jan 2021 23:04:35 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a62.g.dreamhost.com (100-96-27-101.trex.outbound.svc.cluster.local [100.96.27.101]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 62C2218346A; Mon, 11 Jan 2021 23:04:35 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a62.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.11); Mon, 11 Jan 2021 23:04:35 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Fearful-Minister: 17800a1327ad01b2_1610406275615_1828805030 X-MC-Loop-Signature: 1610406275614:2495087245 X-MC-Ingress-Time: 1610406275614 Original-Received: from pdx1-sub0-mail-a62.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a62.g.dreamhost.com (Postfix) with ESMTP id 22D4E7E0BE; Mon, 11 Jan 2021 15:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=nTjjg/IiLQGFE+/VwjzKxpDLYkM=; b=apKyb7oAp2d7P hVIhDozTcqI4nDeS0lGqUPkd6QnQbmy5lbKevAoYqgKJ9dUo6Qxt1yrOzldVpa9q ByYfnSvk5lYYCh0OacPKf89cnk0FZf3Hg2/I0BvrBScBsI8O1VsHWC2PyXzoUyD5 xZqwrriSJkKMxazkMMFeC9y1NvDAb4= Original-Received: from jidanni.org (114-46-57-246.dynamic-ip.hinet.net [114.46.57.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a62.g.dreamhost.com (Postfix) with ESMTPSA id 52BAE895EB; Mon, 11 Jan 2021 15:04:34 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a62 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:197761 Archived-At: PS> Emacs currently notices when you ask it to visit a very large PS> file, and offers to let you open the file 'literally' which I PS> would suggest trying if you are unsure of the contents. PS> See (info "(emacs)Visiting") PS> That's already a good way to improve performance in the buffer PS> (with its own set of trade-offs), but adding a so-long option PS> to that menu could be something to consider. 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. (Sure hope there is a "?" or "C-h" choice there too to describe what each choice does too.) 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. PS> It's definitely in 27.1, if so-long.el is loaded. It's a function. PS> "C-h o so-long-detected-long-line-p" should find it. I see. I was still using C-h v as today is the first time I heard of C-h o.