From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: How can I debug a problem triggered from jit-lock's background fontification? Date: Tue, 08 Mar 2011 00:02:57 -0800 Message-ID: <4D75E2B1.5090200@gmail.com> References: <20110206205403.GA5978@muc.de> <20110207221938.GA3327@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6AE145E4BD7B7D183D6C1189" X-Trace: dough.gmane.org 1299571402 18633 80.91.229.12 (8 Mar 2011 08:03:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 08:03:22 +0000 (UTC) Cc: Alan Mackenzie , Stefan Monnier , emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 08 09:03:16 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pwrsx-0005nm-E0 for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 09:03:15 +0100 Original-Received: from localhost ([127.0.0.1]:35418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwrsw-0005JN-Ly for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 03:03:14 -0500 Original-Received: from [140.186.70.92] (port=44497 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwrsp-0005JA-NT for emacs-devel@gnu.org; Tue, 08 Mar 2011 03:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwrsj-0000vc-V7 for emacs-devel@gnu.org; Tue, 08 Mar 2011 03:03:07 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:47007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwrsj-0000vD-P4 for emacs-devel@gnu.org; Tue, 08 Mar 2011 03:03:01 -0500 Original-Received: by iwl42 with SMTP id 42so6499184iwl.0 for ; Tue, 08 Mar 2011 00:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=AVkAduUiaH58COcmUH734C9qlrlBwfIfC2kTIiKmY+g=; b=nt8NwI1ouDWaUlzkpFYHqM+gb0ZHD4odvXlyy+CtFoy9s/ZMxhM9LakqmGsu670Dqo 5QnT5kcIbhNnJbhebC01PzvmpjQANGD3NYalNR2SI5ae8Vctm+LSc+SvNPg/rP67xg/p 7gm6rQ0MfL7eBNuGYIaOFWmtXEMZDFWQ9CeTw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=fMpjtJ7cE0V9Uj1kr4b6P5/nVvngTkeZT2aQkTqzqVJAT58Y2YirdodU/Qu8NCkX4L RGrQCKnn9Q7QrFfOcQAkRT7lqbVPDakqPk6DQm7f4p1bELRdxzF+S5COLKhjnqjLO+xh G6hUPIBwpM/4n55k0ASULAuaaTJdgZAOrkpdA= Original-Received: by 10.43.43.131 with SMTP id uc3mr6064609icb.300.1299571381038; Tue, 08 Mar 2011 00:03:01 -0800 (PST) Original-Received: from [192.168.1.2] (c-67-183-23-114.hsd1.wa.comcast.net [67.183.23.114]) by mx.google.com with ESMTPS id 8sm414229iba.4.2011.03.08.00.02.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 00:03:00 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-Enigmail-Version: 1.1.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136871 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6AE145E4BD7B7D183D6C1189 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2/7/11 2:22 PM, Lennart Borgman wrote: > On Mon, Feb 7, 2011 at 11:19 PM, Alan Mackenzie wrote: >> >> I've actually inserted a call to `ignore' into the critical place, wit= h >> all the things I want to see as parameters to ignore. Then I trace >> `ignore'. I _think_ I've got the problem tied down, but that will hav= e >> to wait till tomorrow. >=20 > Thanks for that trick, I never thought about using ignore like that. >=20 That is a neat trick. One thing I like to do is use something like this as my "debug probe": (progn (message "foo: %s" foo) (redisplay t) (sit-for 1) t ; or nil, as appropriate ) This way, I can visualize the progress a function is making as it travels up and the down the buffer and detect patterns more easily than I can by looking at numeric output. If I have debug-on-quit turned on, I can stop the process when I notice something amiss and figure out what went wrong. --------------enig6AE145E4BD7B7D183D6C1189 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAk114rIACgkQ17c2LVA10VsFgACfa8jx6ia2BboKfgDCpIdChic7 q0QAoLQjbtDcj3Y3fFtXIZ22wVdT3tUI =I7ux -----END PGP SIGNATURE----- --------------enig6AE145E4BD7B7D183D6C1189--