From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [org-clock] default clock for non-org-mode buffers Date: Thu, 18 Feb 2010 12:14:42 -0500 Message-ID: <87ocjmqxdp.fsf@gollum.intra.norang.ca> References: <87ocjusdpy.fsf@gollum.intra.norang.ca> <87k4uaap18.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni9yC-0005n0-BD for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 12:15:20 -0500 Received: from [140.186.70.92] (port=33444 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni9y3-0005em-QU for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 12:15:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni9y0-00071X-Ax for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 12:15:11 -0500 Received: from plane.gmane.org ([80.91.229.3]:41287) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni9xz-000711-Pc for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 12:15:08 -0500 Received: from public by plane.gmane.org with local (Exim 4.63) (envelope-from ) id 1Ni9xh-0000Vb-83 for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 18:14:49 +0100 In-Reply-To: <87k4uaap18.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Thu\, 18 Feb 2010 10\:09\:23 +0100") 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org S=C3=A9bastien Vauban writes: > Hi Bernt, > > Bernt Hansen wrote: >> I have a couple of tasks I clock in regularly from anywhere using f9-o a= nd >> f9-m (for organization and mail). These clock in the task based on ID. >> >> All of my remember buffers start the clock using the remember hooks. I >> - start remember >> - clock in via hook >> - enter stuff >> - C-c C-c >> - clock out via hook >> >> This remember task is now in the list. I have F11 bound to functions to = make >> clocking in and visiting clocked items easy. > > I've just tried your process, and I find it really, really nice. > > Though, I have a few questions about it, or about how I can do to make it > better suit my needs or particularities. > > Let me explain. > > I clock-in the task "Read Emails and News". I find a nice post, from whic= h I > wanna keep a copy (it was the case with yours, for example), at least of = some > part of it. I select a region, and call remember with the template: > > --8<---------------cut here---------------start------------->8--- > ("Org-mode" ?o > "* %^{Title}\n\n %i\n\n From the %a" > "~/Public/Documentation-on-Org-mode.txt" > "Documentation on Org-mode") > --8<---------------cut here---------------end--------------->8--- > > (BTW, `.txt' files are Org-mode files in my config) > > What is annoying now is that the clock will be stopped for task "Emails a= nd > News" while I really have not changed of activity. And I don't want to cl= ock > in anything special for the simple copy I made of a news posting. Here, I > would expect the started clocked to go on as if nothing happened -- ignor= ing > the "clock switching stuff" for that particular remember template. > > This is completely different if I am interrupted by the phone (client cal= l) or > by a mail which requires a long response to a client (and needs to be > correctly tracked). For these, I will also make use of the remember templ= ates, > such as: > > --8<---------------cut here---------------start------------->8--- > ("Note" ?n > "* %U %?\n\n %i\n From the %a" > nil > "Notes") > --8<---------------cut here---------------end--------------->8--- > > and I want the standard "Read Emails and News" clock to be temporarily > stopped, while the call will be tracked appropriately for a client projec= t. > > So, is there a way to merge those 2 points of view into one functionality? > > Hope my text is clear enough for you all to understand what I mean. I used to have a special remember hook to only clock in remember templates with a :CLOCK-IN: marker in the text. I've since simplified my use of remember and just clock everything -- I don't have to remember to clock it - it just happens. For your case I would just hit F9-SPC (mapped to bh/clock-in-interrupted-task) to switch the clock back after entering the remember template and again after saving it (since saving it switches back to the remember task clock) ie. - clock stuff - enter remember mode (clock switches) - F9-SPC (switch back) - enter your remember details (take as long as you like) - C-c C-c (clock switches again, so you need to switch back) - F9-SPC (switch back) The hook could probably be made smart enough not to clock in the newly saved remember task. I just ignore that though - I just let it clock my time creating the remember note - usually that's less than a minute anyway so the clock drawer ends up empty. (I remove zero clocks) HTH, Bernt PS. I almost missed this mail since it wasn't addressed to me.