From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: problem with font lock Date: Fri, 15 Jan 2010 16:43:21 +0200 Message-ID: <83ljfz77jq.fsf@gnu.org> References: <87zl4fftv2.fsf@newton.homeunix.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1263566602 11918 80.91.229.12 (15 Jan 2010 14:43:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2010 14:43:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Jose A. Ortega Ruiz" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 15 15:43:11 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVnOI-0001Nz-Qo for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2010 15:43:11 +0100 Original-Received: from localhost ([127.0.0.1]:57461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVnOJ-00022i-L1 for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2010 09:43:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVnOC-00022C-QC for emacs-devel@gnu.org; Fri, 15 Jan 2010 09:43:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVnO6-00020D-SW for emacs-devel@gnu.org; Fri, 15 Jan 2010 09:43:03 -0500 Original-Received: from [199.232.76.173] (port=45688 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVnO6-000208-MJ for emacs-devel@gnu.org; Fri, 15 Jan 2010 09:42:58 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:49158) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVnO4-0005rI-DD; Fri, 15 Jan 2010 09:42:56 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KWA00100M6Y9300@a-mtaout21.012.net.il>; Fri, 15 Jan 2010 16:42:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.60.183]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KWA00MCIM73YM60@a-mtaout21.012.net.il>; Fri, 15 Jan 2010 16:42:40 +0200 (IST) In-reply-to: <87zl4fftv2.fsf@newton.homeunix.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:120052 Archived-At: > From: "Jose A. Ortega Ruiz" > Date: Fri, 15 Jan 2010 13:14:09 +0100 > > i'm experiencing an intermittent problem with font lock that i don't > know how to debug (this is emacs 23.1.91 packaged for debian). every now > and then, font lock just stops working in most (but not all) of the > buffers: the extant colors remain, but new text is not coloured at all > (e.g., if i comment a line out, the line's text retains its initial > faces instead of switching to the comment face). as i said, i haven't > found a way to reproduce this behaviour deterministically, and when it > starts happening i don't see any error message around. so my question > is: what would you recommend to look at when i enter this state, so that > i can submit a useful bug report? Did you customize font-lock or jit-lock in any way? Does this happen in "emacs -Q"? If you type "M-x font-lock-fontify-buffer RET", after e.g., commenting a line, does the fontification catch up with the changes? Re-fontification when the buffer is modified or scrolled is done by jit-lock.el, and it generally runs off Emacs timers. So anything that prevents times from running would have the effect that you seem to observe.