From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Fantin Subject: org-capture-templates : should symbols work as a file target ? Date: Mon, 5 Jul 2010 22:11:53 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1641365694==" Return-path: Received: from [140.186.70.92] (port=40091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVs1Z-0003Kn-VC for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 16:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVs1Y-0006Mj-M5 for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 16:12:17 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:50398) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVs1Y-0006MS-HQ for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 16:12:16 -0400 Received: by ewy28 with SMTP id 28so1916950ewy.0 for ; Mon, 05 Jul 2010 13:12:14 -0700 (PDT) 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 --===============1641365694== Content-Type: multipart/alternative; boundary=0015174c0ebe650665048aa98d79 --0015174c0ebe650665048aa98d79 Content-Type: text/plain; charset=UTF-8 Hi folks, I'v been trying to setup an org-capture template using a symbol as the file target, but this raises an error. Someone on IRC mentionned this is probably a bug, but I'm not experienced enough to be sure I'm not simply misusing it... Here is the bit of config in question: * Files #+BEGIN_SRC emacs-lisp (setq org-directory (concat (getenv "HOME") "/org/")) (setq organizer (concat org-directory "organizer.org")) #+END_SRC * Capture #+BEGIN_SRC emacs-lisp (setq org-default-notes-files organizer) #+END_SRC ** Templates #+BEGIN_SRC emacs-lisp (setq org-capture-templates `( ("t" "Task" entry (file+headline organizer "Tasks") "* TODO %?\n%U") ("j" "Journal" entry (file+datetree "~/org/journal.org") "* %?\nEntered on %U\n %i\n %a") )) #+END_SRC Which results in the following message when the first template is selected after executing org-capture: org-find-base-buffer-visiting: Wrong type argument: stringp, organizer So is this actually a bug ? If not, could anyone enlighten me as to how I could manage to reuse this 'organizer in the form ? Cheers ! --0015174c0ebe650665048aa98d79 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi folks,

I'v been trying to setup an org= -capture template using a symbol as the file target, but this raises an err= or.
Someone on IRC mentionned this is probably a bug, but I'm= not experienced enough to be sure I'm not simply misusing it...


Here is the bit of config in question:= =C2=A0


* Files
#+BEGIN_SR= C emacs-lisp
(setq org-directory =C2=A0(concat (getenv "HOME= ") "/org/"))
(setq organizer (concat org-directory "organizer.org"))
#+END_SRC

* Capture
#+BEGIN_SRC emacs-lisp
(setq org-default-n= otes-files organizer)
#+END_SRC

** Templates
#+BEGIN_SRC = emacs-lisp
(setq org-capture-templates
=C2=A0=C2=A0 =C2= =A0 =C2=A0 `(
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0("t" &qu= ot;Task" entry
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 (file+headl= ine =C2=A0organizer "Tasks")
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 "* TODO %?\n%U")

=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0("j" "Journ= al" entry
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 (file+datetree &= quot;~/org/journal.org")
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 "* %?\nEntered on %U\n %i\n %a"= )
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0))
#+END_SRC


Which results in the following message whe= n the first template is selected =C2=A0after executing org-capture:

org-find-base-buffer-visiting: Wrong type argument: str= ingp, organizer

So is this actually a bug ?
<= div>If not, could anyone enlighten me as to how I could manage to reuse thi= s 'organizer in the form ?

Cheers !
--0015174c0ebe650665048aa98d79-- --===============1641365694== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1641365694==--