From mboxrd@z Thu Jan 1 00:00:00 1970 From: Holger Arnold Subject: Re: Bug: org-capture fails if org-capture-templates contains only one template [7.4] Date: Sat, 18 Dec 2010 13:12:41 +0100 Message-ID: <201012181312.41543.harnold@gmx.de> References: <201012181235.49800.harnold@gmx.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=55807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTvfh-0000WL-PS for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 07:13:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTvfg-0000ZC-Ga for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 07:13:57 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:54891 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PTvfg-0000YL-3q for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 07:13:56 -0500 In-Reply-To: <201012181235.49800.harnold@gmx.de> 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: emacs-orgmode@gnu.org Hello, please ignore the bug report, the error message had some other cause, which I cannot identify since I cannot reproduce it anymore. `org-capture' started to work after saving and killing the buffer containing the "todo.org" file. Holger Am Samstag, 18. Dezember 2010, 12:35:49 schrieben Sie: > Hello, > > if `org-capture-templates' contains only one template, then `org-capture' > fails with the following message: "org-capture-set-target-location: Wrong > type argument: stringp, nil". > > This happens independently of whether `org-capture-templates' has been set > through the customization interface or by hand. To reproduce it, try > > (setq org-capture-templates > '(("t" "Todo" entry (file+headline "~/personal/todo.org" "Todo") > "* TODO %?"))) > > Emacs : GNU Emacs 23.2.1 (i586-suse-linux-gnu, GTK+ Version 2.20.1) > of 2010-12-13 on build12 > Package: Org-mode version 7.4 > > > Holger