unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Francis Litterio <franl@world.std.com>
Subject: Re: font-lock basics?
Date: Mon, 31 Jan 2005 12:31:15 -0500	[thread overview]
Message-ID: <u1xc1ebzh.fsf@world.std.com> (raw)
In-Reply-To: 87k6pt36zo.fsf-monnier+emacs@gnu.org

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

      reply	other threads:[~2005-01-31 17:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31  4:03 font-lock basics? Miles Bader
2005-01-31 13:36 ` Stefan Monnier
2005-01-31 15:43   ` Francis Litterio
2005-01-31 16:14     ` Francis Litterio
2005-01-31 16:29     ` Stefan Monnier
2005-01-31 17:31       ` Francis Litterio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u1xc1ebzh.fsf@world.std.com \
    --to=franl@world.std.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).