From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: insert todo from agenda? Date: Mon, 16 Jun 2008 09:54:33 +0200 Message-ID: References: <87lk16a5f0.fsf@mixandgo.ro> Mime-Version: 1.0 (Apple Message framework v924) 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 1K89Y5-0006B2-0s for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 03:54:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K89Y3-0006Ab-Me for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 03:54:44 -0400 Received: from [199.232.76.173] (port=51680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K89Y3-0006AV-GT for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 03:54:43 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:51752) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K89Y2-0003ut-SC for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 03:54:43 -0400 In-Reply-To: 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: Richard G Riley Cc: emacs-orgmode@gnu.org, Cezar Halmagean On Jun 16, 2008, at 5:44 AM, Richard G Riley wrote: > 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. I will have code for this in the next push, as soon as repo.or.cz is up again. - Carsten