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: Tue, 22 Apr 2014 01:37:50 -0400 Message-ID: References: <837g6id3mi.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 1398145082 10530 80.91.229.3 (22 Apr 2014 05:38:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2014 05:38:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 22 07:37:57 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 1WcTP1-00032L-5w for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2014 07:37:55 +0200 Original-Received: from localhost ([::1]:52832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcTP0-0005YI-Op for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2014 01:37:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcTOx-0005Xk-Pm for emacs-devel@gnu.org; Tue, 22 Apr 2014 01:37:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcTOx-0000b8-11 for emacs-devel@gnu.org; Tue, 22 Apr 2014 01:37:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcTOw-0000b4-TZ for emacs-devel@gnu.org; Tue, 22 Apr 2014 01:37:50 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WcTOw-0004HM-Fa; Tue, 22 Apr 2014 01:37:50 -0400 In-reply-to: <837g6id3mi.fsf@gnu.org> (message from Eli Zaretskii on Mon, 21 Apr 2014 19:55:01 +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:171570 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. ]]] I've seen a couple of problems in the current pretest which disappeared once I turned off the cache in the Rmail buffer. I've tried to see what does Rmail do that triggers this, but came up empty-handed. I investigated what was happening when the bug occurred. (forward-line 1) moved across an extra newline, down to point-max. But I don't know how the newline cache works, so I did not try to study that code. One possible approach is to write a builtin function to check the newline cache contents for valid correspondence to the buffer contents. I would not mind making Rmail run that in a post-command-hook. Then I could find out which command causes the cache to become incorrect. But someone else will have to write that builtin function. -- 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.