* file+olp problem in org-capture.
@ 2010-08-24 8:16 Tim O'Callaghan
2010-08-24 12:58 ` Erik Iverson
0 siblings, 1 reply; 4+ messages in thread
From: Tim O'Callaghan @ 2010-08-24 8:16 UTC (permalink / raw
To: org-mode
Hi,
first, am i right i assuming that the file+olp is designed so that i
can specify the top of a tree, and the headings in the tree i want to
be able to capture to?
That is what i am trying to do with the "1" option. It does not
evaluate the concat operation and so fails.
;; constant used in lots of other things.
(defconst toc:ze-org-dir "~/org/")
;; example org template
(setq org-capture-templates
'(
;; works
;; (file+headline "path/to/file" "node headline")
("0" "0+inbox" entry
(file+headline (concat toc:ze-org-dir "0+inbox.org")
"+INBOX") "* %? \n")
;; does not work
;; (file+olp "path/to/file" "Level 1 heading" "Level 2" ...)
("1" "1+projects" entry
(file+olp (concat toc:ze-org-dir "1+projects.org") "+TASKS"
"+PROJECTS")
"* ")))
Tim.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file+olp problem in org-capture.
2010-08-24 8:16 file+olp problem in org-capture Tim O'Callaghan
@ 2010-08-24 12:58 ` Erik Iverson
2010-08-24 13:46 ` Carsten Dominik
0 siblings, 1 reply; 4+ messages in thread
From: Erik Iverson @ 2010-08-24 12:58 UTC (permalink / raw
To: Tim O'Callaghan; +Cc: org-mode
Tim,
I ran into the exact same issue yesterday, in fact, our
examples are almost identical!
Here is the reply I received from David.
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29029.html
I didn't tried his solution yet, but it should work.
On 08/24/2010 03:16 AM, Tim O'Callaghan wrote:
> Hi,
>
> first, am i right i assuming that the file+olp is designed so that i
> can specify the top of a tree, and the headings in the tree i want to
> be able to capture to?
>
> That is what i am trying to do with the "1" option. It does not
> evaluate the concat operation and so fails.
>
> ;; constant used in lots of other things.
> (defconst toc:ze-org-dir "~/org/")
> ;; example org template
> (setq org-capture-templates
> '(
> ;; works
> ;; (file+headline "path/to/file" "node headline")
> ("0" "0+inbox" entry
> (file+headline (concat toc:ze-org-dir "0+inbox.org")
> "+INBOX") "* %? \n")
> ;; does not work
> ;; (file+olp "path/to/file" "Level 1 heading" "Level 2" ...)
> ("1" "1+projects" entry
> (file+olp (concat toc:ze-org-dir "1+projects.org") "+TASKS"
> "+PROJECTS")
> "* ")))
>
>
> Tim.
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file+olp problem in org-capture.
2010-08-24 12:58 ` Erik Iverson
@ 2010-08-24 13:46 ` Carsten Dominik
2010-09-02 14:11 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-08-24 13:46 UTC (permalink / raw
To: Erik Iverson; +Cc: Tim O'Callaghan, org-mode
Hi everyone,
this begins to smell like it should be a FAQ entry.... :)
- Carsten
On Aug 24, 2010, at 2:58 PM, Erik Iverson wrote:
> Tim,
>
> I ran into the exact same issue yesterday, in fact, our
> examples are almost identical!
>
> Here is the reply I received from David.
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29029.html
>
> I didn't tried his solution yet, but it should work.
>
>
> On 08/24/2010 03:16 AM, Tim O'Callaghan wrote:
>> Hi,
>>
>> first, am i right i assuming that the file+olp is designed so that i
>> can specify the top of a tree, and the headings in the tree i want to
>> be able to capture to?
>>
>> That is what i am trying to do with the "1" option. It does not
>> evaluate the concat operation and so fails.
>>
>> ;; constant used in lots of other things.
>> (defconst toc:ze-org-dir "~/org/")
>> ;; example org template
>> (setq org-capture-templates
>> '(
>> ;; works
>> ;; (file+headline "path/to/file" "node headline")
>> ("0" "0+inbox" entry
>> (file+headline (concat toc:ze-org-dir "0+inbox.org")
>> "+INBOX") "* %? \n")
>> ;; does not work
>> ;; (file+olp "path/to/file" "Level 1 heading" "Level 2" ...)
>> ("1" "1+projects" entry
>> (file+olp (concat toc:ze-org-dir "1+projects.org") "+TASKS"
>> "+PROJECTS")
>> "* ")))
>>
>>
>> Tim.
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
- Carsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file+olp problem in org-capture.
2010-08-24 13:46 ` Carsten Dominik
@ 2010-09-02 14:11 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2010-09-02 14:11 UTC (permalink / raw
To: Carsten Dominik; +Cc: Tim O'Callaghan, org-mode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> this begins to smell like it should be a FAQ entry.... :)
Indeed! I added a FAQ entry for this.
This will be in http://orgmode.org/worg/org-faq.php under this headline:
"Can I use a variable or a function inside the `org-capture-templates'
variable?"
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-02 14:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-24 8:16 file+olp problem in org-capture Tim O'Callaghan
2010-08-24 12:58 ` Erik Iverson
2010-08-24 13:46 ` Carsten Dominik
2010-09-02 14:11 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.