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: jit lock sit-for provokes redisplay provokes imenu Date: Sat, 22 Jul 2006 00:38:53 -0400 Message-ID: References: <81CCA6588E60BB42BE68BD029ED4826008838221@wimex2.wim.midas-kapiti.com> <44C0EA68.40105@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1153543183 1824 80.91.229.2 (22 Jul 2006 04:39:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2006 04:39:43 +0000 (UTC) Cc: simon.marshall@misys.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 06:39:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G49H9-0006jt-AH for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2006 06:39:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G49H8-00072n-Sn for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2006 00:39:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G49GR-0006qR-Tw for emacs-devel@gnu.org; Sat, 22 Jul 2006 00:38:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G49GR-0006q1-Bp for emacs-devel@gnu.org; Sat, 22 Jul 2006 00:38:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G49GR-0006pu-6Q for emacs-devel@gnu.org; Sat, 22 Jul 2006 00:38:55 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G49H0-0001V1-0C for emacs-devel@gnu.org; Sat, 22 Jul 2006 00:39:30 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1G49GP-0005D8-V3; Sat, 22 Jul 2006 00:38:54 -0400 Original-To: martin rudalics In-reply-to: <44C0EA68.40105@gmx.at> (message from martin rudalics on Fri, 21 Jul 2006 16:53:28 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57459 Archived-At: Rather than increment CHARS_MODIFF separately, it should copy the value from MODIFF. That way, values of CHARS_MODIFF will be comparable with values that were copied from MODIFF. Also, instead of setting CHARS_MODIFF explicitly in each place that modifies the buffer, modify_region could set it from MODIFF, and changing text properties could save and restore it to prevent it from being incremented. That means changes in fewer places, and no need for each place that modifies the buffer to know about CHARS_MODIFF.