From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: cperl-mode and fontlock Date: Thu, 17 Sep 2009 17:37:35 -0500 Organization: Still searching... Message-ID: <87ab0tjiz4.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253227122 3888 80.91.229.12 (17 Sep 2009 22:38:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2009 22:38:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 00:38:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoPcW-0000f7-S8 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 00:38:33 +0200 Original-Received: from localhost ([127.0.0.1]:55087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoPcW-00018z-6e for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 18:38:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoPc9-00018t-At for help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 18:38:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoPc5-00018g-U6 for help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 18:38:09 -0400 Original-Received: from [199.232.76.173] (port=49973 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoPc5-00018d-JA for help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 18:38:05 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:33554) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoPc5-0003uh-2S for help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 18:38:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MoPc2-0000Xf-M0 for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 00:38:02 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 00:38:02 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 00:38:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:VbckI5uNKVR/F0ZVosxXnIJ0FBw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:68251 Archived-At: (I've cross posted to emacs-devel on the off chance this is strictly a cvs-emacs problem) Running recent cvs-emacs on Gentoo linux Does every one have trouble with syntax highlight in cperl-mode or is it a local phenomena for me? I do have `(global-font-lock-mode t)' set in site-start.el And this in ~/.emacs ===== * ===== * ===== * ===== ;;; Make syntax highlight in shell mode show better colors... ;;; No more dark glaring blue on dark terminal (eval-after-load 'ansi-color '(progn (setq ansi-color-names-vector ["gray50" "salmon" "palegreen" "lightgoldenrod" "SkyBlue2" "plum3" "turquoise" "white"]) (setq ansi-color-map (ansi-color-make-color-map)))) ===== * ===== * ===== * ===== What I see in X, is a general loss of font-locking as I work along. (Haven't tested in console mode) As I enter code... syn-hilite appears to be working just as expected but as time wears on and some of the code scrolls off the screen, Eventually when viewed later syn-hilite has disappeared in all but a few items. Just scrolling code off visible area and back doesn't appear to do it ... I'm not sure exactly what does. If I return to edit some already entered code that has lost its syn-hilite, the hilite returns the instant I make any modification. But then later I see its left again. Calling M-x `font-lock-fontify-buffer' does not seem to re-instate the syntax highlight where it has already gone away either. And its not the kind of thing you see when you've forgotten a closing quote. In that case the whole section turns a uniform color. What I'm seeing is return to default face after a while. Instead of the faces specified by syntax highlight code. And not all items have turned back to default... some remain hilited. An example of something that appear to routinely loose thier highlight are perls' `my' and `our' stipulators. `While' and `if' fall prey after while too, including coding between the curly braces ({...}). Some things that stay highlighted are things inside quotes, and things inside the regular expression operators (//). Any ideas what to do about it?