From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.devel Subject: Re: cperl + isearch + font-lock-multiline sometimes very slow Date: Mon, 23 Oct 2006 10:37:53 +0200 Message-ID: References: <87hcxzd4zx.fsf@furball.mit.edu> <453A4373.7060807@gmx.at> <8764ecl0ja.fsf@furball.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161592782 5383 80.91.229.2 (23 Oct 2006 08:39:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 08:39:42 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 10:39:40 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 1GbvLH-0001WI-Lg for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 10:39:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbvLG-0004RP-AY for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 04:39:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GbvJv-0003zv-J5 for emacs-devel@gnu.org; Mon, 23 Oct 2006 04:38:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GbvJo-0003tP-OG for emacs-devel@gnu.org; Mon, 23 Oct 2006 04:38:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbvJn-0003sF-OC for emacs-devel@gnu.org; Mon, 23 Oct 2006 04:38:00 -0400 Original-Received: from [135.245.0.39] (helo=ihemail4.lucent.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GbvJn-0004x8-JB for emacs-devel@gnu.org; Mon, 23 Oct 2006 04:37:59 -0400 Original-Received: from nbgif1.de.lucent.com (h135-246-31-82.lucent.com [135.246.31.82]) by ihemail4.lucent.com (8.13.8/IER-o) with ESMTP id k9N8bsUC025775; Mon, 23 Oct 2006 03:37:54 -0500 (CDT) Original-Received: from sfsws1.de.lucent.com (sfsws1 [135.246.31.38]) by nbgif1.de.lucent.com (8.11.7p2+Sun/8.11.7) with ESMTP id k9N8br426914; Mon, 23 Oct 2006 10:37:53 +0200 (MEST) Original-Received: from sfsw51.de.lucent.com (sfsw51.de.lucent.com [135.246.72.99]) by sfsws1.de.lucent.com (8.11.7p2+Sun/8.8.5) with ESMTP id k9N8brM10066; Mon, 23 Oct 2006 10:37:53 +0200 (MEST) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id k9N8bru05437; Mon, 23 Oct 2006 10:37:53 +0200 (MEST) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f Original-To: Chong Yidong Tomato: Mauve In-Reply-To: <8764ecl0ja.fsf@furball.mit.edu> (Chong Yidong's message of "Sun\, 22 Oct 2006 13\:31\:53 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (usg-unix-v) 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:61027 Archived-At: >>>>> "Chong" == Chong Yidong writes: Chong> Chong> I managed to reproduce the bug, and figured out the problem. If Chong> ps-print is already loaded, cperl-init-faces is called when Odd dependency. Just out of curiosity (if it isn't too complicated), what was the reason? Chong> cperl-mode.el is loaded instead of when cperl-mode is run. However, Chong> cperl-init-faces assumes cperl-font-lock-multiline is correctly Chong> set, which is normally done at run-time; otherwise, it supplies the Chong> incorrect font-lock keywords. I've checked in a fix. Works great now, stealth fontification is now below 3% CPU. Many thanks. Martin, I guess I don't need to try your patch? If you still want me to try it, let me know. Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- When I get real bored, I like to drive downtown and get a great parking spot, then sit in my car and count how many people ask me if I'm leaving. -- Steven Wright