From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: so-long Date: Sun, 17 Jul 2016 11:03:19 -0400 Message-ID: References: <578A4928.20503@orcon.net.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468767957 25918 80.91.229.3 (17 Jul 2016 15:05:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2016 15:05:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 17 17:05:48 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bOnda-0000eA-TY for ged-emacs-devel@m.gmane.org; Sun, 17 Jul 2016 17:05:47 +0200 Original-Received: from localhost ([::1]:41888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOnda-0005pA-3N for ged-emacs-devel@m.gmane.org; Sun, 17 Jul 2016 11:05:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOnd4-0005p3-6D for emacs-devel@gnu.org; Sun, 17 Jul 2016 11:05:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOncz-0001AW-Up for emacs-devel@gnu.org; Sun, 17 Jul 2016 11:05:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOncz-0001AN-Nh for emacs-devel@gnu.org; Sun, 17 Jul 2016 11:05:09 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bOncu-0008SQ-2C for emacs-devel@gnu.org; Sun, 17 Jul 2016 17:05:04 +0200 Original-Received: from 69-165-156-121.dsl.teksavvy.com ([69.165.156.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 17:05:04 +0200 Original-Received: from monnier by 69-165-156-121.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2016 17:05:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 10 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-156-121.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:58aBFuDAT/Fmcoywhwk8eBd8l+k= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:205777 Archived-At: > so-long.el prevents large 'minified' files (programming code with > extremely long lines) bringing Emacs to its knees. This looks very helpful. I wonder if we could improve the detection part with some help from the C code. I'm thinking of trying to keep track of "the last \n before point" and calling a hook whenever this is larger than a threshold. Stefan