From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: org-mode `org-capture-templates' %(sexp) must return string restriction Date: Fri, 26 Jul 2013 09:09:44 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2c9t-00048u-FP for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 03:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2c9q-00056z-4B for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 03:09:49 -0400 Received: from mail-bk0-x230.google.com ([2a00:1450:4008:c01::230]:65052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2c9p-00053w-TN for emacs-orgmode@gnu.org; Fri, 26 Jul 2013 03:09:46 -0400 Received: by mail-bk0-f48.google.com with SMTP id jf3so994810bkc.35 for ; Fri, 26 Jul 2013 00:09:44 -0700 (PDT) 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: org mode 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