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: Wed, 27 Apr 2005 12:06:58 +0300 Message-ID: <01c54b08$Blat.v2.4$9ce804c0@zahav.net.il> References: <01c54841$Blat.v2.4$8f503680@zahav.net.il> <01c54917$Blat.v2.4$b975aea0@zahav.net.il> <85r7gxkf3r.fsf@lola.goethe.zz> 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 1114594491 18385 80.91.229.2 (27 Apr 2005 09:34:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2005 09:34:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 27 11:34:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQivH-0004AK-QF for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 11:33:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQj1B-0005eK-0t for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 05:39:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQizg-0005IV-Ed for emacs-devel@gnu.org; Wed, 27 Apr 2005 05:38:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQizc-0005HR-DJ for emacs-devel@gnu.org; Wed, 27 Apr 2005 05:38:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQiza-0002Py-Nf for emacs-devel@gnu.org; Wed, 27 Apr 2005 05:38:03 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQibF-0007F9-7C; Wed, 27 Apr 2005 05:12:53 -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 BBV07825 (AUTH halo1); Wed, 27 Apr 2005 12:08:39 +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 18:56:25 -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:36439 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36439 > From: Richard Stallman > CC: eliz@gnu.org, emacs-devel@gnu.org > Date: Tue, 26 Apr 2005 18:56:25 -0400 > > One way to do that is to set jit-lock-defer-time. > > Are you suggesting this as a change in the defaults? > I'm not interested in this as a workaround for me alone; > I want to make it faster for everyone. It could be the default (a value such as 0.2 would be good, I think), although I'm not sure how users will react: the current behavior in 21.x series of Emacs is effectively as if jit-lock-defer-time were nil, and I don't think I've seen a significant number of complaints about scrolling. Personally, I'd reset that option to nil if its default were changed, because I rarely page through a buffer with C-n, and because on modern machines the slowdown is barely visible, but the flash of unfontified text is annoyingly obvious. But that's just me. > I found a way to change line-move-1 not to use vertical-motion > in simple cases. I think it should work, but I don't understand > the reason why the code uses vertical-motion. It's ancient history, from before the display engine was rewritten for Emacs 21. Here's the relevant entry from the logs: 1995-03-09 Richard Stallman * simple.el (line-move-ignore-invisible): New variable. (line-move): If that var is set, use vertical-motion. Skip any extra invis chars beyond where vertical-motion stops. So it seems like you ought to know the reason ;-)