From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: so-long Date: Mon, 18 Jul 2016 23:19:06 +1200 Message-ID: <578CBB2A.1010602@orcon.net.nz> References: <578A4928.20503@orcon.net.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1468840814 4451 80.91.229.3 (18 Jul 2016 11:20:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2016 11:20:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 18 13:20:05 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 1bP6ad-0000wR-7T for ged-emacs-devel@m.gmane.org; Mon, 18 Jul 2016 13:19:59 +0200 Original-Received: from localhost ([::1]:45915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP6ac-0003co-GN for ged-emacs-devel@m.gmane.org; Mon, 18 Jul 2016 07:19:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP6a4-0003cX-5G for emacs-devel@gnu.org; Mon, 18 Jul 2016 07:19:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP6Zz-00048a-5V for emacs-devel@gnu.org; Mon, 18 Jul 2016 07:19:24 -0400 Original-Received: from [219.88.242.62] (port=46535 helo=mail.orcon.net.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP6Zy-00046Y-KL for emacs-devel@gnu.org; Mon, 18 Jul 2016 07:19:19 -0400 Original-Received: from [192.168.20.100] ([150.107.172.23]) (authenticated bits=0) by mail.orcon.net.nz (8.14.3/8.14.3/Debian-9.4) with ESMTP id u6IBJ6xt019137 for ; Mon, 18 Jul 2016 23:19:07 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0: No Bayes scoring rules defined, tokens from: outbound) X-CanIt-Geo: ip=150.107.172.23; country=NZ; region=Auckland; city=Auckland; latitude=-36.8667; longitude=174.7667; http://maps.google.com/maps?q=-36.8667,174.7667&z=6 X-CanItPRO-Stream: base:outbound X-Canit-Stats-ID: 01Rkbj7ju - 62b7442d9b70 - 20160718 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 219.88.242.62 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:205794 Archived-At: On 18/07/16 03:03, Stefan Monnier wrote: > 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. That sounds pretty interesting, although I have virtually no familiarity with the C code, so I'm not in much of a position to discuss that side of things. If there's a sensible way to support long line detection in the core, though, I'm all for it. -Phil