From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Bug in font-lock? Was: QA for CPerl 5.2 Date: Wed, 19 Oct 2005 00:43:27 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Message-ID: References: <435556D7.7030303@thepierianspring.org> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1129688824 26227 80.91.229.2 (19 Oct 2005 02:27:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 02:27:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 04:26:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ES3dl-0004iy-Mo for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 04:25:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ES3dl-0003yf-3h for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2005 22:25:17 -0400 Original-Path: shelby.stanford.edu!not-for-mail Original-Newsgroups: comp.lang.perl.moderated,comp.emacs,gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: windlord.stanford.edu Original-X-Trace: news.Stanford.EDU 1129688566 12392 171.64.19.147 (19 Oct 2005 02:22:46 GMT) Original-X-Complaints-To: news@news.stanford.edu User-Agent: trn [how to get a version via %-escapes???] with a custom header X-How-To-Reach-Me: The From: address is valid X-How-To-Disable-Cc: Put in the headers the line: Mail-Copies-To: never Originator: ilya@powdermilk X-Original-NNTP-Posting-Host: powdermilk.math.berkeley.edu X-Original-Sender: Ilya Zakharevich X-Original-X-Complaints-To: usenet@agate.berkeley.edu X-Original-X-Trace: agate.berkeley.edu 1129682607 79464 169.229.140.13 (19 Oct 2005 00:43:27 GMT) Original-Xref: shelby.stanford.edu comp.lang.perl.moderated:13573 comp.emacs:90354 gnu.emacs.help:134777 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30360 Archived-At: [A complimentary Cc of this posting was sent to Randy W. Sims ], who wrote in article <435556D7.7030303@thepierianspring.org>: > One wierd problem I find is if I load two copies of a certain file it > becomes develishly slow to do anything, even scrolling. This doesn't > seem to happen on all files; not sure if it's size or content related yet. I suspect it is a bug in font-lock.el: in the copy I have `font-lock-fontify-anchored-keywords' uses the variable `limit' to set text-property 'font-lock-multiline. I would think it should have used not this estimate from above, but the actual value of (point) after doing the `while' loop for this purpose. This bug may cause a major slow-down, although I do not know why it shows only with two buffers in CPerl mode... It is hard to work-around this bug; one needs a way to calculate the limit in advance, which may be tricky. I need to think more about this... Thanks, Ilya