From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: cperl-mode "fatigue" Date: Tue, 29 Oct 2002 21:57:32 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <5ld6ptz0r8.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035928852 13739 80.91.224.249 (29 Oct 2002 22:00:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2002 22:00:52 +0000 (UTC) Bcc: ilya Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186ePl-0003YN-01 for ; Tue, 29 Oct 2002 23:00:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186eQt-0000T7-00; Tue, 29 Oct 2002 17:01:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!ilya Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: powdermilk.math.berkeley.edu Original-X-Trace: agate.berkeley.edu 1035928652 97244 169.229.140.13 (29 Oct 2002 21:57:32 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Tue, 29 Oct 2002 21:57:32 +0000 (UTC) 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 Original-Xref: shelby.stanford.edu gnu.emacs.help:106533 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3082 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3082 [A complimentary Cc of this posting was sent to Stefan Monnier ], who wrote in article <5ld6ptz0r8.fsf@rum.cs.yale.edu>: > >>>>> "Da" == Da Witch writes: > > I've noticed that sometimes, especially after I have been editing a > > buffer for a long time, or if I try to use "qw( ... )", cperl-mode > > begins to show signs of "fatigue" (for lack of a better word). For > > example, syntax-based highlighting stops, and everything I type > > appears in the default foreground text color; or else everything > > appears in the color reserved for quoted strings. > > It's probably a bug in CPerl which raises a signal during font-locking > and which in turn turns off on-the-fly fontification. And due to an incredible design flaw, no message about this is emited. This (and other flaws in the debugger w.r.t. "wrapping" exceptions) makes debugging the situation *very* hard. Several years ago I fixed one of such problems; it took *hours* to find the problematic place. > Upgrading cperl-mode might/should fix it. The fix was available all these years, but Emacs was shipping with a broken version nevertheless. I think one in 21 is updated at last; but of course, one cannot exclude a possibility of another bug. BTW, to "restart", M-x normal-mode is enough. Hope this helps, Ilya