From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: [org-clock] default clock for non-org-mode buffers Date: Wed, 10 Feb 2010 12:49:06 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1118593118==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfGgo-00038T-Pl for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 12:49:26 -0500 Received: from [199.232.76.173] (port=46141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfGgo-000384-Al for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 12:49:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfGgk-0004oD-Jl for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 12:49:26 -0500 Received: from lo.gmane.org ([80.91.229.12]:41883) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfGgk-0004nx-7e for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 12:49:22 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NfGgc-0006E7-Gq for emacs-orgmode@gnu.org; Wed, 10 Feb 2010 18:49:14 +0100 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Feb 2010 18:49:14 +0100 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Feb 2010 18:49:14 +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: emacs-orgmode@gnu.org --===============1118593118== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hello-- Sometimes I want to clock in but I'm not in an org-mode buffer. Would it be possible to either provide a function or hook that uses the current buffer to add a selection to the destinations provided by `org-clock-select-task'? I can see two possible functions I would add to an `org-clock-prepare-selections-hook'. First, a version with remember that would create a new task to clock into based on the current buffer #v+ (defun au-clock-in-to-new-task () (if (fboundp org-remember) ;; use one of my remember templates that creates a TODO entry under ;; the heading "uncategorized tasks". it includes a link to the ;; current buffer (org-remember nil (kbd "t"))) ;; ;; then either clock in to the task right away, ;; or add the new task to the selection buffer somehow ;; ... ) #v- And second, a version that lets you browse to an existing task. #v+ ;; I think this one doesn't work as written, but only because I don't ;; know what I am doing (defun au-clock-in-go-to-task () ;; use the org-refile interface to go to an existing task (org-refile t) ;; ;; then do something with link to buffer we clocked in on ;; ... ) #v- Does a hook or some other way of introducing this functionality already exist? If not, would other people use it? Thanks, /au =20=20 =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkty8ZMACgkQlHMl2/XbR4HxbQCfcdZo9PC21HViEZWbE0Q80QOQ u7wAn2dKLWDQQ0zguIpT3MR/qSMBXCQl =X9tZ -----END PGP SIGNATURE----- --=-=-=-- --===============1118593118== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1118593118==--