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.devel Subject: Re: so-long-mode and line-move-visual Date: Mon, 09 May 2022 00:24:46 +1200 Message-ID: <4ec7ea96745c3e007a6c85b2a75b0dff@webmail.orcon.net.nz> References: <83sfpkwpb9.fsf@gnu.org> <837d6ww9rq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36797"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 08 14:26:07 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nnfzC-0009TG-TE for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 14:26:06 +0200 Original-Received: from localhost ([::1]:55136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnfzC-0003xl-0B for ged-emacs-devel@m.gmane-mx.org; Sun, 08 May 2022 08:26:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnfy4-0003Dh-5G for emacs-devel@gnu.org; Sun, 08 May 2022 08:24:56 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:35921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnfy2-0000qH-KW; Sun, 08 May 2022 08:24:55 -0400 Original-Received: from [10.253.37.70] (port=1983 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nnfxu-0004vu-NI; Mon, 09 May 2022 00:24:51 +1200 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Mon, 09 May 2022 00:24:46 +1200 In-Reply-To: <837d6ww9rq.fsf@gnu.org> X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.34; envelope-from=psainty@orcon.net.nz; helo=smtp-1.orcon.net.nz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289477 Archived-At: On 2022-05-08 23:20, Eli Zaretskii wrote: >> With the option combo currently set by so-long, Emacs is only >> displaying a small portion of a long line > > When truncate-lines is nil, lines are NOT truncated, so long > lines wrap around, and we display whole lines (at least their > parts that fit in a window, and windows nowadays tend to be very > tall), not their small portions. What am I missing? I think you're only missing the sheer scale of the line lengths I am referring to when I say that -- even if tall, an entire window can *easily* be completely filled by only "a small portion" of the kind of line I'm trying to protect against (for the example I gave before, the line is 18 megabytes of JSON). >> As such, I don't think these defaults should be changed. > > Well, I found the defaults sub-optimal in the case someone > presented on help-gnu-emacs yesterday, thus my question. I'm not subscribed to help-gnu-emacs but I can see the thread in the archives. At first glance so-long does what it's supposed to do with that symbol.ts file. The description of the problem is a bit vague, and I don't know why they'd see different performance from the minor mode vs the major mode (the major mode for *.ts files would presumably need to be causing the slowness directly, but that would be unusual). Alternatively, perhaps they're using the "Doom Emacs" config which may still be enabling `font-lock-mode' in `so-long-minor-mode' (which I told them was a bad idea when I first became aware, but I don't think they changed it). I can see that the user in question has had success with using `longlines-mode', which does seem like a good solution for them. > If you are still unconvinced, so be it. I am. I do appreciate that the defaults aren't ideal for all cases, but I nevertheless believe they're the right defaults, as I don't believe there's any particular collection of settings which is optimal in all situations. My overriding concern is preventing Emacs from ever locking up due to merely visiting a file, so that goal has always informed the default settings. -Phil