From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Defaults for Org variables Date: Thu, 17 Sep 2009 07:37:46 +0100 Message-ID: References: <87vdjjf1uc.fsf@gmx.de> <2ED271B9-9CBF-4E10-A3C1-A77E7B4ED5F6@uva.nl> <878wgefq0z.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoAxA-000871-9t for emacs-orgmode@gnu.org; Thu, 17 Sep 2009 02:58:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoAx5-000850-2m for emacs-orgmode@gnu.org; Thu, 17 Sep 2009 02:58:51 -0400 Received: from [199.232.76.173] (port=38511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoAx4-00084x-U1 for emacs-orgmode@gnu.org; Thu, 17 Sep 2009 02:58:46 -0400 Received: from mx20.gnu.org ([199.232.41.8]:32691) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoAx4-0000TP-Aq for emacs-orgmode@gnu.org; Thu, 17 Sep 2009 02:58:46 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoAx3-0005T9-1o for emacs-orgmode@gnu.org; Thu, 17 Sep 2009 02:58:45 -0400 In-Reply-To: <878wgefq0z.fsf@gmx.de> 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: Sebastian Rose Cc: emacs-orgmode emacs-orgmode On Sep 17, 2009, at 12:06 AM, Sebastian Rose wrote: > Carsten Dominik writes: >>> (defun sr-org-todo-state-toggled() >>> "Start the clock, if the state of a todo item changes to 'STARTED'." >>> (if(string= "STARTED" state) >>> (org-clock-in) >>> (org-clock-out-if-current))) >>> >>> (setq org-after-todo-state-change-hook 'sr-org-todo-state-toggled) >> >> I don't think this can be the default, I am not sure all people >> would use it like this. Bernt, for example, has many STARTED entries >> around at any time. > > > Same here. But working on exactly one at a time. > > The hook function works only on the one task I toggle. > > If I stop working on an STARTED task that is not yet finished, I use > `C-c C-x C-o' to clock out. > > Switching a task from TODO to STARTED means I'm starting to work on > it, > and therefor I want to clock in. > > Switching the task to `DONE' means I'm done with it, and therefor I > want > to clock out. > > > I found this on the list or somewhere, and it's exactly useful if, you > need/want to clock each task you work on. > Well, clocking work time is my primary use case for Org-mode. > > I never switched tasks using the modeline menu yet. Maybe an > additional > function is needed to clock out the current task and clock in the next > one, I don't know. I tend to go back to the entry and add some notes, > e.g. how a problem was solved, and clock out then. I see. Still, while this is very useful, it is still quite workflow dependent... - Carsten > > > > >>> I have to admit, that I'm not aware of the defaults anymore >>> (didn't use >>> them since a year or so). I'll have to create another user on my >>> system, >>> to check :) >> >> Or just call org-submit-bug-report which will show you all your non- >> default >> settings, including hooks. > > Ahh, that's a great tip. > Looking at the bug report, I cannot believe I set that many values > myself. > But, yes, it seems I did :) > > > Sebastian ======================= PLEASE NOTE NEW ADDRESS ======================= prof.dr. Carsten Dominik dominik@uva.nl Astronomical Institute 'Anton Pannekoek' www.astro.uva.nl/~dominik Faculty of Science, University of Amsterdam phone +31-20-5257477/7491 SCIENCE PARK 904, ROOM C4-106 fax +31-20-5257484 1098 XH Amsterdam, The Netherlands mail: PO BOX 94249, 1090GE, Amsterdam