From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Sticky agenda branch merged Date: Tue, 17 Apr 2012 18:33:12 -0400 Message-ID: <87hawikmzb.fsf@norang.ca> References: <87aa2chuug.wl%max@openchat.com> <4F8D4164.1070207@online.de> <4F8DBE61.7080405@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKGxp-0006Mz-Vp for emacs-orgmode@gnu.org; Tue, 17 Apr 2012 18:33:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKGxl-0006um-BT for emacs-orgmode@gnu.org; Tue, 17 Apr 2012 18:33:33 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:55091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKGxl-0006rH-8c for emacs-orgmode@gnu.org; Tue, 17 Apr 2012 18:33:29 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer Stengele Cc: emacs-orgmode@gnu.org Rainer Stengele writes: > Am 17.04.2012 12:09, schrieb Rainer Stengele: > Hi Max, > > I found the culprit: > > > (defun bh/mark-parent-tasks-started () > "Visit each parent task and change TODO states to STARTED" > (unless bh/mark-parent-tasks-started > (when (equal state "INARBEIT") > (let ((bh/mark-parent-tasks-started t)) > (save-excursion > (while (org-up-heading-safe) > (when (member (nth 2 (org-heading-components)) (list "TODO" "INARBEIT" "WARTEN")) > (org-todo "INARBEIT")))))))) > > (add-hook 'org-after-todo-state-change-hook 'bh/mark-parent-tasks-started 'append) > > > something seems to have changed conecerning the "state" variable. The function fails and stops the clockin process. > Deactivating the hook brings back the right behaviour. > Sorry for that. > > Bernt, that function of yours does seem to have stopped working? Hi Rainer, I no longer use a STARTED state so I've dropped this function from my setup. I'll update the doc - thanks for the notification. Regards, Bernt