[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font locking problem

From: Lowell Kirsh
Subject: Re: font locking problem
Date: Mon, 10 May 2004 14:29:51 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040322

Strange... When I change my .emacs from (require 'font-lock) to (load "font-lock.el") my problems go away. Why would this make a difference?


Stefan Monnier wrote:
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
eval((goto-char (match-beginning 4)))         <====================
font-lock-fontify-keywords-region(1 1515 t)   <====================


I've had a look at the code in font-lock.el, but can't make much of the
information in the dump.  (In particular, I can't see the connection
between the two lines of the dump I've marked with "<=======", which is
the critical bit.  Stefan, what am I missing?)

font-lock.el has some `defsubst' (i.e. functions that get inlined) so the
backtrace is "incomplete".  The call to eval is actually in
font-lock-apply-highlight or in font-lock-fontify-anchored-keywords (both
inlined functions called from font-lock-fontify-keywords-region).

If you load font-lock.el (i.e. the source code), the backtrace will be
a lot more complete.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]