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: Stealth fontification GCs a lot Date: Thu, 14 Apr 2005 15:04:00 -0400 Message-ID: References: <200504140017.50453.jyavner@member.fsf.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113507044 27985 80.91.229.2 (14 Apr 2005 19:30:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2005 19:30:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 21:30:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMA2q-0000Ip-DL for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2005 21:30:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMA6C-00020o-E7 for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2005 15:34:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DM9rG-0001CN-Qp for emacs-devel@gnu.org; Thu, 14 Apr 2005 15:18:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DM9qy-00019s-HL for emacs-devel@gnu.org; Thu, 14 Apr 2005 15:18:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DM9qy-00015F-5Z for emacs-devel@gnu.org; Thu, 14 Apr 2005 15:18:16 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DM9dq-0005kg-PN; Thu, 14 Apr 2005 15:04:42 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DM9dA-0007XV-8k; Thu, 14 Apr 2005 15:04:00 -0400 Original-To: Jonathan Yavner In-reply-to: <200504140017.50453.jyavner@member.fsf.org> (message from Jonathan Yavner on Thu, 14 Apr 2005 00:17:50 -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:35988 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35988 I love JIT font-lock and depend on it for proper operation of HAPE, but stealth-fontification is pointless when working on a 2MB file that's heavily fontified but probably much less than 1% of it will be looked at during any one editing session. Perhaps stealth fontification should be turned off for files larger than a certain size. Or perhaps with Eli's revised parameters it is so harmless that you may as well have it enabled for these files too. After all, suppose you visit the file and then spend half an hour on the phone. It could have fontified the whole thing for you in that much time--so why not do so? Maybe it should only try to stealth-fontify some amount of text before and after the current point (e.g., 100 lines before and after; if the user moves, then just give up on the old position...), That might be a good idea, but 100 lines is clearly too little. 500 or 1000 might be better.