From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: newline cache Date: Wed, 23 Apr 2014 18:14:31 +0300 Message-ID: <838uqw9iy0.fsf@gnu.org> References: <837g6id3mi.fsf@gnu.org> <838uqxb6o6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1398266109 2293 80.91.229.3 (23 Apr 2014 15:15:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 15:15:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 23 17:15:02 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 1Wcyt3-0005LH-P7 for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2014 17:15:01 +0200 Original-Received: from localhost ([::1]:33308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcyt3-0005kS-Be for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2014 11:15:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcysu-0005da-VY for emacs-devel@gnu.org; Wed, 23 Apr 2014 11:14:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wcysp-0003y2-2M for emacs-devel@gnu.org; Wed, 23 Apr 2014 11:14:52 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:36121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcyso-0003xn-Qd; Wed, 23 Apr 2014 11:14:47 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0N4H00D00OSFIY00@a-mtaout21.012.net.il>; Wed, 23 Apr 2014 18:14:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N4H00DAEP0AFY50@a-mtaout21.012.net.il>; Wed, 23 Apr 2014 18:14:35 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:171608 Archived-At: > Date: Wed, 23 Apr 2014 01:31:24 -0400 > From: Richard Stallman > CC: emacs-devel@gnu.org > > > I investigated what was happening when the bug occurred. > > (forward-line 1) moved across an extra newline, down to point-max. > > When forward-line errs, it's too late, because the cache is already > corrupted. > > The point is, this is how I know the problem is in the newline cache. I don't doubt that. An even easier way to make sure is set cache-long-scans to a nil value. > The cache code is in region-cache.c. > > I don't have time to study and debug that. That's okay, I just mentioned that for if/when you will.