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: newline cache Date: Tue, 22 Apr 2014 10:28:19 -0400 Message-ID: References: <837g6id3mi.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398176935 1303 80.91.229.3 (22 Apr 2014 14:28:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2014 14:28:55 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 22 16:28:48 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 1Wcbgl-0006s0-NJ for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2014 16:28:47 +0200 Original-Received: from localhost ([::1]:55492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcbgl-00024v-6G for ged-emacs-devel@m.gmane.org; Tue, 22 Apr 2014 10:28:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcbgb-00024c-8P for emacs-devel@gnu.org; Tue, 22 Apr 2014 10:28:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcbgT-00016N-M7 for emacs-devel@gnu.org; Tue, 22 Apr 2014 10:28:37 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcbgL-00015P-GL; Tue, 22 Apr 2014 10:28:21 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3MESJa5017616; Tue, 22 Apr 2014 10:28:19 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A7983AE159; Tue, 22 Apr 2014 10:28:19 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue, 22 Apr 2014 01:37:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4920=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4920> : inlines <752> : streams <1164562> : uri <1737487> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:171574 Archived-At: > One possible approach is to write a builtin function to check the > newline cache contents for valid correspondence to the buffer > contents. Maybe add a monitoring code, which (when enabled at compile-time) always checks the return value of that cache against the non-cached result? Stefan