From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Clocking in on non-org files Date: Sun, 6 Oct 2013 09:56:38 +0200 Message-ID: <20131006095638.6069d50d@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSjLu-0004aq-A7 for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 04:06:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSjLl-0004JX-Ig for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 04:06:10 -0400 Received: from pp.amu.edu.pl ([150.254.65.67]:39097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSjLl-0004JN-Bl for emacs-orgmode@gnu.org; Sun, 06 Oct 2013 04:06:01 -0400 Received: from pp.amu.edu.pl (localhost [127.0.0.1]) by pp.amu.edu.pl (Postfix) with ESMTP id C67DFAB12F for ; Sun, 6 Oct 2013 09:56:41 +0200 (CEST) Received: from aga-netbook (99-52.echostar.pl [213.156.99.52]) by pp.amu.edu.pl (Postfix) with ESMTPSA id ABC46AB12D for ; Sun, 6 Oct 2013 09:56:41 +0200 (CEST) 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: Org-mode mailing list Hi all, I have a bunch of TODO items connected with LaTeX files (in general: projects) I'm working on. I was wondering whether it might be possible and/or wise to set things up so that I could clock in (C-c C-x C-i) in a buffer containing such a file. Currently, executing org-clock-in in a non-Org buffer results in an error (at least with my setup); with a prefix argument, everything is fine, I'm asked for one of the last clocked items. My dream is that I can clock in my buffer with just C-c C-x C-i, and Org somehow could know which item to clock. I imagine file-local variable might be the way to go. It might be a good idea to both change/advise org-clock-in to accomodate for this use case, and define something like org-associate-file-with-org-headline-for-the-purpose-of-clocking to e.g. ask for the item (from org-clock history), or use the refile interface (which I haven't used, but I guess it could work well) and set the file-local variable accordingly. Does there exist something like this? Do you like this idea? Does it have any pitfalls I cannot see? Would anyone but me use this? If the answers are no, yes, no, yes, I might try to implement it when I have some time to spare (i.e., not now - I'm extremely busy during this week - but maybe in a week or two) Best, -- Marcin Borkowski room B3-46, phone no +48 61 829 5375 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University