From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [OT] Custom remember template Date: Tue, 10 May 2011 23:08:01 -0400 Message-ID: <4548.1305083281@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJzmg-0006Fx-4v for emacs-orgmode@gnu.org; Tue, 10 May 2011 23:08:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJzmf-0005z9-9B for emacs-orgmode@gnu.org; Tue, 10 May 2011 23:08:22 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:49706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJzmf-0005yt-5s for emacs-orgmode@gnu.org; Tue, 10 May 2011 23:08:21 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LL000L0WGPDXSE0@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 10 May 2011 22:08:07 -0500 (CDT) In-reply-to: Message from Marcelo de Moraes Serpa of "Tue, 10 May 2011 20:56:18 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: nicholas.dokos@hp.com, Org Mode Marcelo de Moraes Serpa wrote: > I want a truly custom string to be output by the org-remember > template, so I thought I could do something like: > > > ("Journal Entry" ?j (concat "* " (mycustomfunc))) > > Since "mycustomfunc" and concat both return strings, I thought I > wouldn't have a problem... > > But it fails with: > > let*: Wrong type argument: char-or-string-p, (concat "kd" "d") > > I'm not yet that good with elisp to debug that. Could someone give a > hand ? Or it's not possible at all? > org-remember is more or less obsolete by now. You should consider using org-capture instead: it gives you much more flexibility (including the ability to define a function that returns the template to be used). Nick