[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock basics?
From: |
Francis Litterio |
Subject: |
Re: font-lock basics? |
Date: |
Mon, 31 Jan 2005 12:31:15 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) |
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