emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Julien Fantin <julien.fantin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-capture-templates : should symbols work as a file target ?
Date: Mon, 5 Jul 2010 22:11:53 +0200	[thread overview]
Message-ID: <AANLkTikV_hTBcrif-gE4E5y5SJWbT_kUTctdTSpC3Neu@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1148 bytes --]

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 !

[-- Attachment #1.2: Type: text/html, Size: 1898 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2010-07-05 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-05 20:11 Julien Fantin [this message]
2010-07-05 20:22 ` org-capture-templates : should symbols work as a file target ? David Maus
2010-07-09  1:17   ` Glauber Alex Dias Prado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikV_hTBcrif-gE4E5y5SJWbT_kUTctdTSpC3Neu@mail.gmail.com \
    --to=julien.fantin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).