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==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: org-capture-templates : should symbols work as a file target ? Date: Mon, 05 Jul 2010 22:22:49 +0200 Message-ID: <87630tispy.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1943471372==" Return-path: Received: from [140.186.70.92] (port=45203 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVsCC-0005uK-4i for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 16:23:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVsCA-0007t4-Sj for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 16:23:16 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:33194) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVsCA-0007sg-O2 for emacs-orgmode@gnu.org; Mon, 05 Jul 2010 16:23:14 -0400 In-Reply-To: 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: Julien Fantin Cc: emacs-orgmode@gnu.org --===============1943471372== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Jul__5_22:22:49_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Mon_Jul__5_22:22:49_2010-1 Content-Type: text/plain; charset=US-ASCII Julien Fantin wrote: >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: >** 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 You already backquote the template list so you've just to but the special marker , (comma) in front of organizer and it gets evaluated. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Mon_Jul__5_22:22:49_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkwyPxkACgkQma24O1pEeOYNlgD/Y/1z2Jun5tDpDC9/IjGieMgM POYZwsln/rrnIpc30kQBAIvaE73y/Ypq8m1e11FnoKpUJKxCqq9L7WGxca2I50yA =DOWz -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Jul__5_22:22:49_2010-1-- --===============1943471372== 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 --===============1943471372==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Alex Dias Prado Subject: Re: org-capture-templates : should symbols work as a file target ? Date: Thu, 08 Jul 2010 22:17:39 -0300 Message-ID: <87r5jdo3m4.fsf@gmail.com> References: <87630tispy.wl%dmaus@ictsoc.de> Reply-To: smade4@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OX29c-0001a1-J2 for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 21:13:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OX29b-0002bo-IM for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 21:13:24 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:57813) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OX29b-0002bk-FS for emacs-orgmode@gnu.org; Thu, 08 Jul 2010 21:13:23 -0400 Received: by gwb1 with SMTP id 1so1083682gwb.0 for ; Thu, 08 Jul 2010 18:13:22 -0700 (PDT) In-Reply-To: <87630tispy.wl%dmaus@ictsoc.de> (David Maus's message of "Mon, 05 Jul 2010 22:22:49 +0200") 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: David Maus Cc: emacs-orgmode@gnu.org, Julien Fantin David Maus writes: > Julien Fantin wrote: >>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... my apologies it was me, and im also not that experienced, nice that you answered his question. > > >>Here is the bit of config in question: > > >>** 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 > > You already backquote the template list so you've just to but the > special marker , (comma) in front of organizer and it gets evaluated. > > HTH > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > _______________________________________________ > 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