From mboxrd@z Thu Jan 1 00:00:00 1970 From: Holger Arnold Subject: Bug: org-capture fails if org-capture-templates contains only one template [7.4] Date: Sat, 18 Dec 2010 12:35:49 +0100 Message-ID: <201012181235.49800.harnold@gmx.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59761 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTv60-00043D-I4 for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 06:37:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTv5z-0001qy-0u for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 06:37:04 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:46042 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PTv5y-0001pS-FN for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 06:37:02 -0500 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, 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