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: [rudalics@gmx.at: Re: jit lock sit-for provokes redisplay provokes imenu] Date: Thu, 31 Aug 2006 14:16:16 -0400 Message-ID: References: <8764gcde3n.fsf@stupidchicken.com> <878xl754fy.fsf@furball.mit.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1157048286 24891 80.91.229.2 (31 Aug 2006 18:18:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2006 18:18:06 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 31 20:18:03 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 1GIr6k-00066I-Ov for ged-emacs-devel@m.gmane.org; Thu, 31 Aug 2006 20:17:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GIr6k-0005O7-7Z for ged-emacs-devel@m.gmane.org; Thu, 31 Aug 2006 14:17:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GIr5O-0003hT-12 for emacs-devel@gnu.org; Thu, 31 Aug 2006 14:16:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GIr5N-0003gu-67 for emacs-devel@gnu.org; Thu, 31 Aug 2006 14:16:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GIr5M-0003gd-VJ for emacs-devel@gnu.org; Thu, 31 Aug 2006 14:16:16 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GIrF2-0002Dy-Hs for emacs-devel@gnu.org; Thu, 31 Aug 2006 14:26:16 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GIr5M-0000LL-0e; Thu, 31 Aug 2006 14:16:16 -0400 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Wed, 30 Aug 2006 16:49:34 -0400) 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:59172 Archived-At: Or at least no worse: the code would simply be moved from jit-lock to this new macro, and then the macro can be used anywhere, e.g. in jit-lock (where we can remove the corresponding macro), font-lock (idem), and probably many other places where we use restore-buffer-modified-p. It'd end up providing something similar to Martin's buffer-chars-modified-tick, except implemented in Lisp rather than in C. Please give it a try if you want to; we can see what it looks like.