From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: C-n is very slow in Font-Lock mode Date: Tue, 26 Apr 2005 21:05:03 +0300 Message-ID: <01c54a8a$Blat.v2.4$9d6aeda0@zahav.net.il> References: <01c54841$Blat.v2.4$8f503680@zahav.net.il> <01c54917$Blat.v2.4$b975aea0@zahav.net.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1114538765 19568 80.91.229.2 (26 Apr 2005 18:06:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 18:06:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 26 20:06:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQUQM-0004yl-Hf for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 20:04:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQUW7-0001Jc-V6 for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 14:10:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQUVf-00015u-Cb for emacs-devel@gnu.org; Tue, 26 Apr 2005 14:10:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQUVa-000146-OS for emacs-devel@gnu.org; Tue, 26 Apr 2005 14:10:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQUVa-0000ZF-AP for emacs-devel@gnu.org; Tue, 26 Apr 2005 14:10:06 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQUWl-0006e5-0I; Tue, 26 Apr 2005 14:11:19 -0400 Original-Received: from zaretski (IGLD-80-230-41-251.inter.net.il [80.230.41.251]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BBS52825 (AUTH halo1); Tue, 26 Apr 2005 21:06:35 +0300 (IDT) Original-To: rms@gnu.org X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: (message from Richard Stallman on Tue, 26 Apr 2005 06:05:41 -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:36415 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36415 > 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. IIRC, Stefan introduced that option to provide functionality similar to now-obsolete lazy-lock.