From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: cperl + isearch + font-lock-multiline sometimes very slow Date: Sun, 22 Oct 2006 13:31:53 -0400 Message-ID: <8764ecl0ja.fsf@furball.mit.edu> References: <87hcxzd4zx.fsf@furball.mit.edu> <453A4373.7060807@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161538372 19050 80.91.229.2 (22 Oct 2006 17:32:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2006 17:32:52 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 22 19:32:50 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 1GbhBW-0001tc-PH for ged-emacs-devel@m.gmane.org; Sun, 22 Oct 2006 19:32:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbhBW-0005Ax-5O for ged-emacs-devel@m.gmane.org; Sun, 22 Oct 2006 13:32:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GbhBI-0005Ao-PI for emacs-devel@gnu.org; Sun, 22 Oct 2006 13:32:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbhBI-0005Ag-C8 for emacs-devel@gnu.org; Sun, 22 Oct 2006 13:32:16 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GbhBI-0007kF-Ab for emacs-devel@gnu.org; Sun, 22 Oct 2006 13:32:16 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k9MHWCE3011710; Sun, 22 Oct 2006 13:32:12 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id k9MHW9pJ001682; Sun, 22 Oct 2006 13:32:09 -0400 (EDT) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-FOUR-O-FIVE.MIT.EDU [18.95.6.150]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k9MHVr70003972; Sun, 22 Oct 2006 13:31:53 -0400 (EDT) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GbhAv-0001LM-00; Sun, 22 Oct 2006 13:31:53 -0400 Original-To: Klaus Zeitler In-Reply-To: <453A4373.7060807@gmx.at> (martin rudalics's message of "Sat\, 21 Oct 2006 17\:57\:39 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.217 X-Scanned-By: MIMEDefang 2.42 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:61005 Archived-At: I managed to reproduce the bug, and figured out the problem. If ps-print is already loaded, cperl-init-faces is called when cperl-mode.el is loaded instead of when cperl-mode is run. However, cperl-init-faces assumes cperl-font-lock-multiline is correctly set, which is normally done at run-time; otherwise, it supplies the incorrect font-lock keywords. I've checked in a fix.