From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: calling org-remember with an argument to select remember-type? Date: Thu, 23 Oct 2008 01:26:28 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ksjop-00051e-NY for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 15:56:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ksjoo-00051G-AG for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 15:56:35 -0400 Received: from [199.232.76.173] (port=52649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksjoo-000516-1p for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 15:56:34 -0400 Received: from ti-out-0910.google.com ([209.85.142.187]:59689) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ksjok-00053G-GA for emacs-orgmode@gnu.org; Wed, 22 Oct 2008 15:56:30 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1516709tia.10 for ; Wed, 22 Oct 2008 12:56:28 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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: =?ISO-8859-1?Q?S=F8ren_Pedersen?= Cc: emacs-orgmode@gnu.org On Thu, Oct 23, 2008 at 12:48 AM, S=F8ren Pedersen wrote: > Hey all > > I am trying to call org-remember and automatically select making a journal entry > (associated with the character "j"). > > I have tried the following: > > (org-remember "j") > (org-remember ?J) > > describe-function on org-remember mentions org-force-remember-template-char so I > have also tried: > > (let ((org-force-remember-template-char ?j)) > (org-remember)) > > (let ((org-force-remember-template-char "j")) > (org-remember)) > > But all of these display the prompt to select which remember-type to cr= eate. > Following section of manual seems to suggests that you have more than one template defined and available in that specific mode. ,----[ http://orgmode.org/manual/Remember-templates.html#Remember-templates= ] | When you call M-x org-remember (or M-x remember) to remember | something, Org will prompt for a key to select the template (if you | have more than one template) and then prepare the buffer [...] `---- So either you need to delete other templates or if you call this template in a specific mode then you can consider defining template so that it is the only available template in that mode (please see the URL of the quoted section for details.) I haven't had a chance to test this yet but seems like a plausible solution. HTH, --=20 Manish