From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: orgmode opening source file from agenda when marking as done Date: Mon, 17 Aug 2009 18:36:46 -0400 Message-ID: <12537.1250548606@alphaville.usa.hp.com> References: <4FFFB0FE-CAFA-40F5-9F36-EDE3C1BF0048@gilbert.org> <20524da70908171231k60113c3dve461573bf5ffb9df@mail.gmail.com> <4C310FDE-5730-403E-9F23-6CF7770A641E@gilbert.org> <20524da70908171316u1c20741dob8711d72a338ae8c@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdAqJ-0002ds-Bt for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 18:38:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdAqE-0002bE-5q for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 18:38:18 -0400 Received: from [199.232.76.173] (port=41540 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdAqE-0002av-1w for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 18:38:14 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:40101) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MdAqC-0007Qa-Vh for emacs-orgmode@gnu.org; Mon, 17 Aug 2009 18:38:13 -0400 In-Reply-To: Message from Michael Gilbert of "Mon, 17 Aug 2009 13:30:48 PDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Gilbert Cc: emacs-orgmode Michael Gilbert wrote: > On Aug 17,2009, at 1:16 PM, Samuel Wales wrote: > > > org-after-todo-state-change-hook is a variable defined in `org.el'. > > Thank you, John for the detailed explanation. Thank you, Samuel, for > this help. > > The value, alas, is nil. > > Other ideas? > So this is a persistent state of affairs? You restart emacs from scratch and it still does it? If that's the case, then one of your initialization files must have been modified - check modification dates, compare against backups - by hook or crook, find what changed. If that still does not produce results, you can bisect your way to the place where the problem appears: start emacs with the -q switch and load .emacs piecemeal: open the .emacs file in a buffer and evaluate it one s-expr at a time by placing the cursor after the closing paren of the s-expr and using C-x C-e (that is bound to eval-last-sexp). Or if you prefer bigger bites, mark a region and use M-x eval-region on it. Try the agenda commands that give you trouble after every evaluation. At the beginning, you are going to get errors, since org-mode will not even have been loaded. At some point, the agenda command is going to succeed and either behave properly or misbehave - but then you know which part of the initialization file is responsible and you can concentrate your efforts on that. You may also find that the problem arises when your .emacs loads another initialization file, in which case you go through the same process on that file. Eventually, you'll find the culprit. HTH, Nick PS. It might be a good idea to post a more detailed description of *exactly* what you are doing and what you see when the misbehavior occurs. Although I read the thread completely, I'm still not quite sure what exactly you are seeing - for example, could it be just the "note" behavior of the org-log-done variable? (C-h v org-log-done for details). Taking a screenshot of emacs and posting that might help as well.