From: Lowell Kirsh <lkirsh@cs.ubc.ca>
Subject: Re: font locking problem
Date: Mon, 10 May 2004 14:29:51 -0700 [thread overview]
Message-ID: <c7os8g$mpj$1@mughi.cs.ubc.ca> (raw)
In-Reply-To: <jwvwu3l9yvj.fsf-monnier+gnu.emacs.help@gnu.org>
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?
Lowell
Stefan Monnier wrote:
>>>Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
>>>goto-char(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.
>
>
> Stefan
next prev parent reply other threads:[~2004-05-10 21:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 2:32 font locking problem Lowell Kirsh
2004-05-04 16:26 ` Kevin Rodgers
2004-05-04 22:36 ` Lowell Kirsh
2004-05-05 7:14 ` Alan Mackenzie
2004-05-05 21:12 ` Lowell Kirsh
2004-05-07 8:33 ` Alan Mackenzie
2004-05-08 3:25 ` Lowell Kirsh
2004-05-09 19:44 ` Stefan Monnier
2004-05-10 21:29 ` Lowell Kirsh [this message]
2004-05-11 15:45 ` Kevin Rodgers
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='c7os8g$mpj$1@mughi.cs.ubc.ca' \
--to=lkirsh@cs.ubc.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.