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: C-n is very slow in Font-Lock mode Date: Tue, 26 Apr 2005 18:56:25 -0400 Message-ID: References: <01c54841$Blat.v2.4$8f503680@zahav.net.il> <01c54917$Blat.v2.4$b975aea0@zahav.net.il> <85r7gxkf3r.fsf@lola.goethe.zz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1114556067 18956 80.91.229.2 (26 Apr 2005 22:54:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 22:54:27 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 27 00:54:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQYvS-0006Iy-9G for ged-emacs-devel@m.gmane.org; Wed, 27 Apr 2005 00:53:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQZ1G-0006pc-Dm for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2005 18:59:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQZ0x-0006kv-T3 for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:58:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQZ0x-0006kb-6t for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:58:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQZ0x-0006fU-3W for emacs-devel@gnu.org; Tue, 26 Apr 2005 18:58:47 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQZ3I-0007qJ-CG for emacs-devel@gnu.org; Tue, 26 Apr 2005 19:01:12 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DQYyf-00022w-QA; Tue, 26 Apr 2005 18:56:25 -0400 Original-To: David Kastrup In-reply-to: <85r7gxkf3r.fsf@lola.goethe.zz> (message from David Kastrup on Tue, 26 Apr 2005 12:27:20 +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:36430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36430 So for its correct behavior, it is mandatory to do the font locking. The only exception to that would be if the user would have specified that it is ok to work with unfontified text. You are right. I will change it back. 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. 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. Can anyone add a comment to explain why?