all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to debug Error during redisplay
Date: Sat, 12 Jan 2013 08:08:53 -0500	[thread overview]
Message-ID: <jwv7gnizh2s.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2zk0fkm3o.fsf@gmail.com> (Leo Liu's message of "Sat, 12 Jan 2013 13:26:51 +0800")

>> You can try (setq font-lock-support-mode nil) then turn font-lock-mode off
>> and then back on, so as to make it not use jit-lock.  If you're lucky,
>> the same problem will occur, but this time it'll be in a context where
>> debug-on-error works.
> But I couldn't get it to work. I did:
> 1. M-: (setq font-lock-support-mode nil)
> 2. M-x font-lock-mode
> 3. M-x font-lock-mode

Indeed, adaptive-wrap uses jit-lock directly and not font-lock, so the
above doesn't help.
We should really improve jit-lock.el to provide a "debugging mode" where
it somehow runs the code at some other time than during redisplay, so it
can be debugged better.


        Stefan



  reply	other threads:[~2013-01-12 13:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11  9:03 How to debug Error during redisplay Leo Liu
2013-01-11 10:25 ` Eli Zaretskii
2013-01-11 11:02   ` Leo Liu
2013-01-11 14:08     ` Eli Zaretskii
2013-01-12  5:25       ` Leo Liu
2013-01-12  9:43         ` Eli Zaretskii
2013-01-12 11:56           ` Leo Liu
2013-01-12 12:03             ` Leo Liu
2013-01-12 13:49               ` Eli Zaretskii
2013-01-12 13:58                 ` Leo Liu
2013-01-12 14:31                   ` Eli Zaretskii
2013-01-12 17:17                     ` Stephen Berman
2013-01-12 12:30             ` Eli Zaretskii
2013-01-11 14:56 ` Stefan Monnier
2013-01-12  5:26   ` Leo Liu
2013-01-12 13:08     ` Stefan Monnier [this message]
2013-01-12 13:38       ` Leo Liu
2013-01-12 13:52       ` Eli Zaretskii
2013-01-12 14:07         ` Leo Liu
2013-01-12 14:38         ` Stefan Monnier

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=jwv7gnizh2s.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.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 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.