From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: FR: interactive todo creation with remember templates Date: Fri, 25 Jan 2008 14:58:12 +0100 Message-ID: <7DBD0865-2702-4A87-86FE-497037BD571E@science.uva.nl> References: <47FDCF18-357C-453E-9157-FB7E11F0DA5D@science.uva.nl> <2f1c7d020801240837q495ef3fdodc8a6a174041d9b7@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v915) 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 1JIP4V-0004m0-P0 for emacs-orgmode@gnu.org; Fri, 25 Jan 2008 08:58:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIP4U-0004lN-Ra for emacs-orgmode@gnu.org; Fri, 25 Jan 2008 08:58:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIP4U-0004lJ-HO for emacs-orgmode@gnu.org; Fri, 25 Jan 2008 08:58:18 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIP4U-0004yY-8X for emacs-orgmode@gnu.org; Fri, 25 Jan 2008 08:58:18 -0500 Received: by ug-out-1314.google.com with SMTP id a2so519893ugf.48 for ; Fri, 25 Jan 2008 05:58:15 -0800 (PST) In-Reply-To: <2f1c7d020801240837q495ef3fdodc8a6a174041d9b7@mail.gmail.com> 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: Hugo Schmitt Cc: emacs-orgmode@gnu.org On Jan 24, 2008, at 5:37 PM, Hugo Schmitt wrote: > I think my suggestion doesn't fit orgmode that well, but what if > 'org-remember' had 'template' as an optonal argument? (instead of > pulling from org-remember-template interactively). > > Then people could write their own menus/keymap/etc before calling > remember. > (Hmm, thinking about it, maybe i'll try that myself so i can call > remember from Anything) If you are wiling to write lisp code, you can already do this, by putting a list with only one template temporarily into org-remember-templates, like this: (let ((org-remember-templates ("Task" 116 "* TODO %?\n %u" "~/org/gtd.org" "Tasks"))) (call-interactively 'org-remember)) When there is only a single template in the list, Org-mode will actually skip the query for the template and execute it right away. So yes, you can write a function that does built a template on the fly. Hope this helps - Carsten