From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard G Riley Subject: Re: Re: insert todo from agenda? Date: Mon, 16 Jun 2008 05:44:04 +0200 Message-ID: References: <87lk16a5f0.fsf@mixandgo.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K85db-00082a-4A for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:44:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K85dZ-00082O-N9 for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:44:09 -0400 Received: from [199.232.76.173] (port=49934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K85dZ-00082L-HC for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:44:09 -0400 Received: from hu-out-0506.google.com ([72.14.214.232]:55091) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K85dZ-0007fS-28 for emacs-orgmode@gnu.org; Sun, 15 Jun 2008 23:44:09 -0400 Received: by hu-out-0506.google.com with SMTP id 34so6668156hud.1 for ; Sun, 15 Jun 2008 20:44:08 -0700 (PDT) In-Reply-To: (Manish's message of "Mon, 16 Jun 2008 08:46:14 +0530") 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: Manish Cc: Cezar Halmagean , emacs-orgmode@gnu.org, Richard G Riley Manish writes: > May be I misunderstood but it seems following setup > does all that you want (and more). > > Please see below. > > ,----[ Relevant setup ] > | (defun my-start-clock-if-needed () > | (save-excursion > | (goto-char (point-min)) > | (when (re-search-forward ":CLOCK-IN:" nil t) > | (replace-match "") > | (org-clock-in)))) > | > | (setq org-remember-templates > | (quote > | ( > | ("Client1 Task" ?g "* NEWTASK %? %^g %&\n SCHEDULED: %t\n > :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client1.org" "Unprocessed > Tasks") > | ("Client2 Task" ?G "* NEWTASK %? %^g %& \n SCHEDULED: %t\n > :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client2.org" "Unprocessed > Tasks") > | ("Personal Tasks" ?p "* NEWTASK %? %& \n SCHEDULED: %t\n > :CLOCK-IN:\n CREATED: %U\n" "~/org.git/personal.org" "Unprocessed > Tasks") > | ("Appointment @ Client1" ?a "* APPT %? %& \n SCHEDULED: %^{At: > }T\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client1.org" "New > Appointments") > | ("Appointment @ Client2" ?A "* APPT %? %& \n SCHEDULED: %^T{At: > }\n :CLOCK-IN:\n CREATED: %U\n" "~/org.git/client2.org" "New > Appointments") > | ("Notes" ?n "* %?\n %a\n CREATED: %U\n" "~/org.git/notes.org" "Notes") > | ("Journal" 106 "\n* JOURNAL Entry at %U\n %?" > "~/org.git/journal.org" "Journal") > | ))) > `---- > > This setup: > > - schedules the task by default for today (%t) The Agenda insert should set the date and time to the date and time under the cursor so I dont think this is the same thing being requested.