From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.emacs.devel Subject: Re: problem with font lock Date: Fri, 15 Jan 2010 17:27:18 +0100 Message-ID: <87k4vjfi55.fsf@newton.homeunix.net> References: <87zl4fftv2.fsf@newton.homeunix.net> <83ljfz77jq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263575732 13586 80.91.229.12 (15 Jan 2010 17:15:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2010 17:15:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 15 18:15:25 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 1NVpkU-0007wy-Iz for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2010 18:14:14 +0100 Original-Received: from localhost ([127.0.0.1]:54566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVpkV-00019b-9i for ged-emacs-devel@m.gmane.org; Fri, 15 Jan 2010 12:14:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVpfF-0004dt-15 for emacs-devel@gnu.org; Fri, 15 Jan 2010 12:08:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVpfA-0004ai-DP for emacs-devel@gnu.org; Fri, 15 Jan 2010 12:08:48 -0500 Original-Received: from [199.232.76.173] (port=36041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVpf9-0004aU-EV for emacs-devel@gnu.org; Fri, 15 Jan 2010 12:08:43 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:30778) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVpf8-000757-L1 for emacs-devel@gnu.org; Fri, 15 Jan 2010 12:08:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVpex-0006b1-Qi for emacs-devel@gnu.org; Fri, 15 Jan 2010 12:08:32 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NVpeq-0003YE-IT for emacs-devel@gnu.org; Fri, 15 Jan 2010 18:08:24 +0100 Original-Received: from 74.red-80-24-4.staticip.rima-tde.net ([80.24.4.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jan 2010 18:08:24 +0100 Original-Received: from jao by 74.red-80-24-4.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Jan 2010 18:08:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 74.red-80-24-4.staticip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-Attribution: jao X-URL: Cancel-Lock: sha1:UoiwWoY0lA3bjLpzITMztRTuvD0= X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:120058 Archived-At: Eli Zaretskii writes: >> 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? I'm using customize themes that include many, many font lock faces; other than that no. > Does this happen in "emacs -Q"? I don't know. It only happens after periods of days using emacs, and i cannot afford that long without my customizations and other packages. > If you type "M-x font-lock-fontify-buffer RET", after e.g., commenting > a line, does the fontification catch up with the changes? Yes, it does. > 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. Sounds reasonable, specially since font-lock-fontify-buffer still works. For now, i'll apply Stephan's advice and try to see if i reach the condition with font-lock-support-mode disabled. Thanks! jao -- There are two ways to write error-free programs; only the third one works. - Alan Perlis, Epigrams in Programing