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: Font-lock in COMINT modes Date: Mon, 18 Dec 2006 11:00:02 -0500 Message-ID: References: <87vekaf780.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1166469734 1855 80.91.229.2 (18 Dec 2006 19:22:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2006 19:22:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 18 20:22:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GwKxL-0008Be-4L for ged-emacs-devel@m.gmane.org; Mon, 18 Dec 2006 17:03:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GwKxK-0005Ho-Mc for ged-emacs-devel@m.gmane.org; Mon, 18 Dec 2006 11:03:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GwKuL-00045K-Jw for emacs-devel@gnu.org; Mon, 18 Dec 2006 11:00:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GwKuK-00044d-JZ for emacs-devel@gnu.org; Mon, 18 Dec 2006 11:00:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GwKuK-00044R-4x for emacs-devel@gnu.org; Mon, 18 Dec 2006 11:00:04 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GwKuJ-0008Tf-Kq for emacs-devel@gnu.org; Mon, 18 Dec 2006 11:00:03 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1GwKuI-00017B-7y; Mon, 18 Dec 2006 11:00:02 -0500 Original-To: Chong Yidong In-reply-to: <87vekaf780.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 17 Dec 2006 18:11:43 -0500) 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:63931 Archived-At: I listed in FOR-RELEASE that this case is slow: You must have gotten that impression from Stefan's 12/08 message: if [font-lock-defaults ] is nil font-lock-mode-internal is not activated at all. AFAIK nil and (nil t) are equivalent (i.e. don't highlight anything), except that (nil t) takes a lot more CPU to do nothing (it runs all the font-lock-foo-function hooks, enables jit-lock so as to do nothing just-in-time rather than eagerly, checks where nothing needs to be done, rounds up to a whole number of lines the region upon which inaction is requested, checks if there's a multiline entity and extends the region even more, so that nothing is done in a multiline way, ...). Even though it is true that font lock jumps through more hoops with (nil t), there is no evidence that this slowdown affects the user. Could you check and see?