From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: C-n is very slow in Font-Lock mode Date: Tue, 26 Apr 2005 23:38:11 +0200 Message-ID: <85mzrlgqws.fsf@lola.goethe.zz> References: <01c54841$Blat.v2.4$8f503680@zahav.net.il> <01c54917$Blat.v2.4$b975aea0@zahav.net.il> <01c54a8a$Blat.v2.4$9d6aeda0@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114552840 9614 80.91.229.2 (26 Apr 2005 22:00:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 22:00:40 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 27 00:00:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQY6F-0008AL-KG for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 00:00:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQYC3-0004eI-7T for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 18:06:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQY71-0001f1-Ab for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:00:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQY6x-0001Yj-77 for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:00:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQY6u-0007uU-GV for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:00:54 -0400 Original-Received: from [151.189.21.44] (helo=mail-in-04.arcor-online.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DQXp8-0002BZ-LW; Tue, 26 Apr 2005 17:42:30 -0400 Original-Received: from lola.goethe.zz (i5387859C.versanet.de [83.135.133.156]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 59624104EFF; Tue, 26 Apr 2005 23:38:28 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6081D1C1E25E; Tue, 26 Apr 2005 23:38:12 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: <01c54a8a$Blat.v2.4$9d6aeda0@zahav.net.il> (Eli Zaretskii's message of "Tue, 26 Apr 2005 21:05:03 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:36423 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36423 "Eli Zaretskii" writes: >> From: Richard Stallman >> CC: emacs-devel@gnu.org >> Date: Tue, 26 Apr 2005 06:05:41 -0400 >> >> > It turns out that vertical-motion was fontifying all the text that >> > it moved over. That seems to be easy to fix. >> >> Did you try my suggestion of customizing jit-lock-defer-time? >> >> No, because I want to fix this, not work around it. vertical-motion >> is a cursor motion function. It should not fontify anything. > > As David pointed out, vertical-motion does that for a good reason: > fontification can well change the pixel size of the glyphs that Emacs > needs to display. > > I think jit-lock-defer-time _is_ the way to avoid the slowness if > you are willing to see the text unfontified for a fraction of a > second. I think that a separate value of 0 where is one not willing to see text unfontified, but willing to have motion calculated with a still unfontified text, would make perfect sense. It might be that jit-lock-defer-time already happens to work this way. If not, it probably should, and 0 instead of nil should be the default value. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum