From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: newline cache Date: Wed, 23 Apr 2014 01:31:25 -0400 Message-ID: References: <837g6id3mi.fsf@gnu.org> <838uqxb6o6.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1398231097 6195 80.91.229.3 (23 Apr 2014 05:31:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 05:31:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 23 07:31:31 2014 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 1WcpmN-0005Iw-6R for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2014 07:31:31 +0200 Original-Received: from localhost ([::1]:58698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcpmM-0001QG-Qo for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2014 01:31:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcpmJ-0001Nl-6R for emacs-devel@gnu.org; Wed, 23 Apr 2014 01:31:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcpmI-0000qu-9R for emacs-devel@gnu.org; Wed, 23 Apr 2014 01:31:27 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcpmI-0000qa-61 for emacs-devel@gnu.org; Wed, 23 Apr 2014 01:31:26 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WcpmH-0000VT-KK; Wed, 23 Apr 2014 01:31:25 -0400 In-reply-to: <838uqxb6o6.fsf@gnu.org> (message from Eli Zaretskii on Tue, 22 Apr 2014 20:44:25 +0300) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171605 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] The function I added returns an array with 2 sub-arrays, one with newline positions according to the cache, the other with newline positions according to the actual buffer contents. That may take a very long time for my RMAIL buffer, which is 4 meg. I don't think I could tolerate having that run after each Rmail command. To make this fast enough for me to use it to localize the bug, it needs to operate only on a specified part of the buffer. Maybe that will make it fast enough. If not, it needs to be optimized in other ways too. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.