From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-mode `org-capture-templates' %(sexp) must return string restriction Date: Thu, 8 Aug 2013 09:11:15 +0200 Message-ID: <1FFAB21C-9933-4625-AF57-888915D008BC@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7KNY-000542-ID for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 03:11:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7KNT-0002KH-7G for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 03:11:24 -0400 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]:58917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7KNS-0002K3-W1 for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 03:11:19 -0400 Received: by mail-ea0-f177.google.com with SMTP id f15so1225806eak.36 for ; Thu, 08 Aug 2013 00:11:18 -0700 (PDT) In-Reply-To: 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: Oleh Cc: org mode Hi Oleh, please provide a patch, I like the proposed change. - Carsten On 26.7.2013, at 09:09, Oleh wrote: > Hi all, > > Is this restriction really necessary? > This results in code like: > > (setq > org-capture-templates > '(("e" "elisp todo" > entry > (file+headline (concat org.d "gtd.org") "Tasks") > "* TODO %(progn (org-set-tags-to \"ELISP\") \"\")%^{Brief > Description}\n Added: %U %i\n %?\n"))) > > I think it should be fine to just return nil. That would be equivalent > to the empty string. > Here's the same code if returning nil would be acceptable: > > (setq > org-capture-templates > '(("e" "elisp todo" > entry > (file+headline (concat org.d "gtd.org") "Tasks") > "* TODO %(org-set-tags-to \"ELISP\")%^{Brief Description}\n > Added: %U %i\n %?\n"))) > > Any opinions on this? > > regards, > Oleh >