From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel Subject: Re: font-lock basics? Date: Mon, 31 Jan 2005 12:31:15 -0500 Message-ID: References: <87mzupwwix.fsf-monnier+emacs@gnu.org> <87k6pt36zo.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107193315 14568 80.91.229.6 (31 Jan 2005 17:41:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 17:41:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 31 18:41:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CvfYb-0000NX-00 for ; Mon, 31 Jan 2005 18:41:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvflM-0001dI-1p for ged-emacs-devel@m.gmane.org; Mon, 31 Jan 2005 12:55:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CvfkT-0001KU-Fs for emacs-devel@gnu.org; Mon, 31 Jan 2005 12:54:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CvfkN-0001Fj-78 for emacs-devel@gnu.org; Mon, 31 Jan 2005 12:54:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvfkN-0001Eg-2R for emacs-devel@gnu.org; Mon, 31 Jan 2005 12:53:59 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CvfUM-0005HV-TN for emacs-devel@gnu.org; Mon, 31 Jan 2005 12:37:27 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1CvfU3-0007vO-J1 for emacs-devel@gnu.org; Mon, 31 Jan 2005 18:37:07 +0100 Original-Received: from brick.estc.com ([209.27.151.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2005 18:37:07 +0100 Original-Received: from franl by brick.estc.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2005 18:37:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: brick.estc.com X-Draft-From: ("nntp+news.gmane.org:gmane.emacs.devel" 32675) Gcc: nnfolder:sent-usenet X-Random-Quote: Generosity is giving more than you can, and pride is taking less than you need. -- Kahlil Gibran User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:0QWepPL9uctrpn3dKSEWLJG4DRQ= X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: ged-emacs-devel@m.gmane.org 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: main.gmane.org gmane.emacs.devel:32678 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32678 Stefan Monnier wrote: > Maybe the patch below papers over this particular manifestation of the more > general problem. It does. Your patch is preferable to mine (in another message) -- I didn't realize that font-lock-keywords might not be bound when this code executes. > Index: font-core.el > =================================================================== > RCS file: /cvsroot/emacs/emacs/lisp/font-core.el,v > retrieving revision 1.23 > diff -u -u -b -r1.23 font-core.el > --- font-core.el 1 Sep 2003 15:45:12 -0000 1.23 > +++ font-core.el 31 Jan 2005 16:24:56 -0000 > @@ -1,7 +1,7 @@ > ;;; font-core.el --- Core interface to font-lock > > -;; Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001, 02, 2003 > -;; Free Software Foundation, Inc. > +;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, > +;; 2002, 2003, 2005 Free Software Foundation, Inc. > > ;; Maintainer: FSF > ;; Keywords: languages, faces > @@ -202,6 +202,7 @@ > ;; Only do hard work if the mode has specified stuff in > ;; `font-lock-defaults'. > (when (or font-lock-defaults > + (and (boundp 'font-lock-keywords) font-lock-keywords) > (cdr (assq major-mode font-lock-defaults-alist))) > (font-lock-mode-internal mode))) > > @@ -295,6 +296,5 @@ > > (provide 'font-core) > > +;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71 > ;;; font-core.el ends here > - > -;;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71