From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Performance degradation from long lines Date: Sun, 28 Oct 2018 15:03:44 +1300 Message-ID: <46ba7375-5dc3-c34a-036d-a33928533d58@orcon.net.nz> References: <665d5f3d84c071632f87f66ffedb6aed@webmail.orcon.net.nz> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1540692149 6340 195.159.176.226 (28 Oct 2018 02:02:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2018 02:02:29 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 28 03:02:25 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGaPI-0001Xy-NB for ged-emacs-devel@m.gmane.org; Sun, 28 Oct 2018 03:02:24 +0100 Original-Received: from localhost ([::1]:38447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGaRO-0003xU-Rt for ged-emacs-devel@m.gmane.org; Sat, 27 Oct 2018 22:04:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGaQh-0003xM-Vh for emacs-devel@gnu.org; Sat, 27 Oct 2018 22:03:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGaQe-00084Y-PS for emacs-devel@gnu.org; Sat, 27 Oct 2018 22:03:51 -0400 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:43101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGaQe-00083d-Dm for emacs-devel@gnu.org; Sat, 27 Oct 2018 22:03:48 -0400 Original-Received: from [150.107.172.125] (port=42933 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1gGaQb-00051T-7U for emacs-devel@gnu.org; Sun, 28 Oct 2018 15:03:45 +1300 In-Reply-To: <665d5f3d84c071632f87f66ffedb6aed@webmail.orcon.net.nz> Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 60.234.4.59 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230747 Archived-At: On 25/10/18 4:26 PM, Phil Sainty wrote: > As it happens I've been working on this again in recent days, and > intend to release this to GNU ELPA in the near future.  I haven't > finished testing all the new changes, so there may be new bugs, but > the latest work-in-progress code can be found at: > > http://git.savannah.nongnu.org/cgit/so-long.git/plain/so-long.el?h=wip There were indeed some new bugs (primarily a dumb one which meant it was *only* testing the first line). Hopefully now all fixed. > If there was some future work on the redisplay to provide a "reduced > display capabilities" option or mode, configuring so-long to enable > that should be trivial. With this in mind, along with the discussion of longlines-mode, I've introduced `so-long-action' (perhaps rename to `so-long-function'?) which provides the following behaviours: (*) Change major mode to so-long-mode (default) ( ) Disable minor modes and override variables ( ) Enable longlines-mode ( ) Custom function ( ) Do nothing "Disable minor modes and override variables" means the buffer's original major mode is retained, but all the *other* things which so-long-mode would cause to happen still take place. -Phil