From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Best way to detect font-lock mode is on? Date: Wed, 12 Jan 2011 10:45:41 -0500 Organization: A noiseless patient Spider Message-ID: References: <87ei8uvgws.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294850434 29078 80.91.229.12 (12 Jan 2011 16:40:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 16:40:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 12 17:40:30 2011 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.69) (envelope-from ) id 1Pd3kK-0007Dq-0T for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 17:40:28 +0100 Original-Received: from localhost ([127.0.0.1]:54269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd3kJ-0000rs-Kj for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jan 2011 11:40:27 -0500 Original-Path: usenet.stanford.edu!newsserver.news.garr.it!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Injection-Info: mx02.eternal-september.org; posting-host="8jSoPKcnI4RsJz0v4H4pBg"; logging-data="4360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VsT57p241pVEirPoPL6fr" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Au8T7uOL5tbgEiPkv9L/Mxiggk4= sha1:+waP4smOmI4ST8Iayj582vvCcbY= Original-Xref: usenet.stanford.edu gnu.emacs.help:184238 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:78415 Archived-At: > No matter what is the test, your logic is not enough. In cperl-mode, > I pepper all such functions with > (cperl-update-fontification pos) Yes, in Emacs-24, the syntactic fontification has been taken out of font-lock, and syntax-ppss updates it on-demand, just like cperl has been doing for ages. Stefan