From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: How to debug modification to a variable value? Date: Wed, 27 Jan 2010 09:24:38 +0100 Message-ID: <871vhcarax.fsf@thinkpad.tsdh.de> References: <87636pvrdj.fsf@thinkpad.tsdh.de> <9131EBDDBDBF4BC384201871CA79A2BE@us.oracle.com> <87d40x5m9b.fsf@thinkpad.tsdh.de> <4B5FED4D.60000@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264581415 21502 80.91.229.12 (27 Jan 2010 08:36:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2010 08:36:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Roehler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 27 09:36:47 2010 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.50) id 1Na3OH-000388-OW for ged-emacs-devel@m.gmane.org; Wed, 27 Jan 2010 09:36:46 +0100 Original-Received: from localhost ([127.0.0.1]:56526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na3OI-0007sT-2O for ged-emacs-devel@m.gmane.org; Wed, 27 Jan 2010 03:36:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na3Ci-0005hv-Jh for emacs-devel@gnu.org; Wed, 27 Jan 2010 03:24:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na3Cc-0005ge-7h for emacs-devel@gnu.org; Wed, 27 Jan 2010 03:24:47 -0500 Original-Received: from [199.232.76.173] (port=52664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na3Cb-0005gW-TJ for emacs-devel@gnu.org; Wed, 27 Jan 2010 03:24:41 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:58073) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Na3Cb-0000kZ-B0 for emacs-devel@gnu.org; Wed, 27 Jan 2010 03:24:41 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na3Ca-0007cV-Ld for emacs-devel@gnu.org; Wed, 27 Jan 2010 03:24:40 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D94DA78A3D18; Wed, 27 Jan 2010 09:24:39 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16794-02; Wed, 27 Jan 2010 09:24:39 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (wlan-135.uni-koblenz.de [141.26.93.135]) by deliver.uni-koblenz.de (Postfix) with ESMTP id E2AD478A3CC6; Wed, 27 Jan 2010 09:24:38 +0100 (CET) Mail-Followup-To: Andreas Roehler , emacs-devel@gnu.org In-Reply-To: <4B5FED4D.60000@online.de> (Andreas Roehler's message of "Wed, 27 Jan 2010 08:37:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:120487 Archived-At: Andreas Roehler writes: Hi Andreas, > what about to run a form with "assert MY-Values last-command > this-command" with a timer in background, so it's signaled as soon the > var is changed? I think that timer would need to run every fraction of a second to have a chance to point me in the right direction. Have a look at Davis last message. He spotted the error: a small function was added to `after-save-hook' globally, but it must be there only buffer-locally. The assert has to be evaluated exactly when that function is executed, to point me into the right direction. I guess the watchpoint approach is more exact, and I'll learn how to do that as soon as I find some time. Bye, Tassilo