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: Thu, 27 Jul 2006 19:45:55 -0400 Message-ID: References: <81CCA6588E60BB42BE68BD029ED4826008838221@wimex2.wim.midas-kapiti.com> <44C0EA68.40105@gmx.at> <44C1EE07.3080502@gmx.at> <44C750EC.2020004@gmx.at> <85irlk6l00.fsf@lola.goethe.zz> <85hd13m2s1.fsf@lola.goethe.zz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1154043973 8461 80.91.229.2 (27 Jul 2006 23:46:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2006 23:46:13 +0000 (UTC) Cc: rudalics@gmx.at, simon.marshall@misys.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 01:46:11 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 1G6FYQ-0002Ai-Ic for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 01:46:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6FYQ-00017F-4U for ged-emacs-devel@m.gmane.org; Thu, 27 Jul 2006 19:46:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6FYE-00015w-3e for emacs-devel@gnu.org; Thu, 27 Jul 2006 19:45:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6FYD-000157-0b for emacs-devel@gnu.org; Thu, 27 Jul 2006 19:45:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6FYC-000154-TG for emacs-devel@gnu.org; Thu, 27 Jul 2006 19:45:56 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6Fa4-00056N-K1 for emacs-devel@gnu.org; Thu, 27 Jul 2006 19:47:52 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1G6FYB-000347-M2; Thu, 27 Jul 2006 19:45:55 -0400 Original-To: David Kastrup In-reply-to: <85hd13m2s1.fsf@lola.goethe.zz> (message from David Kastrup on Thu, 27 Jul 2006 18:27:26 +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:57702 Archived-At: Another possibility would be to check the sign of their difference instead of comparing them directly. Then wraparound is not a problem, instead one of them has to have moved more than half the total range away from the other before things get ugly. It might happen less often, but if people really edit a buffer enough to make the count wrap around, they could do so without saving it, and this change wouldn't help in such a case.