From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to debug Error during redisplay Date: Sat, 12 Jan 2013 08:08:53 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357996150 1507 80.91.229.3 (12 Jan 2013 13:09:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 13:09:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 14:09:27 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tu0px-0004W4-8M for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 14:09:25 +0100 Original-Received: from localhost ([::1]:56584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0ph-0008G4-6S for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 08:09:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0pX-0007uk-QF for emacs-devel@gnu.org; Sat, 12 Jan 2013 08:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu0pS-0005rO-LW for emacs-devel@gnu.org; Sat, 12 Jan 2013 08:08:59 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0pS-0005rK-Hq for emacs-devel@gnu.org; Sat, 12 Jan 2013 08:08:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiAIAG6Zu09FpZpV/2dsb2JhbABEgXutX4Q3gQiCFQEBBAFWIxALDiYSFBgNJIgcBboJkEQDiEKacYFYgwc X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212359744" Original-Received: from 69-165-154-85.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.85]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Jan 2013 08:08:54 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A89D2592A5; Sat, 12 Jan 2013 08:08:53 -0500 (EST) In-Reply-To: (Leo Liu's message of "Sat, 12 Jan 2013 13:26:51 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156267 Archived-At: >> 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