emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting Refiling Targets
@ 2012-07-19  8:20 Varun Vats
  2012-07-19 11:05 ` Moritz Ulrich
  0 siblings, 1 reply; 3+ messages in thread
From: Varun Vats @ 2012-07-19  8:20 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]

Hi,

I am trying to add to my refile target list a file that exists in a
sub-directory of org-directory. I have tried to do this by concatenating
 the variable org-directory with the string containing the path to the file
like so:

(setq org-refile-targets '((nil :maxlevel . 9)
                           (org-agenda-files :maxlevel . 9)
                           (concat org-directory "/projects/project.org"
:maxlevel . 9)))

This does not seem the right way to do it as I get the error
org-refile-get-targets:
Bad refiling target description (org-directory
/projects/project.org:maxlevel . 9)when I try to refile something.
Unfortunately I do not have sufficient
knowledge about elisp to correct this, but I am willing to read-up if
pointed in the right direction. Any suggestions are welcome.

Thank you.

--
Sincerely,
Varun Vats
Graduate Student
University of Wisconsin, Madison
mailvarunvats@gmail.com

[-- Attachment #2: Type: text/html, Size: 1859 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting Refiling Targets
  2012-07-19  8:20 Setting Refiling Targets Varun Vats
@ 2012-07-19 11:05 ` Moritz Ulrich
  2012-07-19 12:52   ` Varun Vats
  0 siblings, 1 reply; 3+ messages in thread
From: Moritz Ulrich @ 2012-07-19 11:05 UTC (permalink / raw)
  To: Varun Vats; +Cc: emacs-orgmode

Try

(setq org-refile-targets `((nil :maxlevel . 9)
                           (org-agenda-files :maxlevel . 9)
                           (,(concat org-directory
"/projects/project.org") :maxlevel . 9)))

Notice the ` instead of ' and the ,. This feature is called 'quasiquote'.


On Thu, Jul 19, 2012 at 10:20 AM, Varun Vats <mailvarunvats@gmail.com> wrote:
> (setq org-refile-targets '((nil :maxlevel . 9)
>                            (org-agenda-files :maxlevel . 9)
>                            (concat org-directory "/projects/project.org"
> :maxlevel . 9)))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting Refiling Targets
  2012-07-19 11:05 ` Moritz Ulrich
@ 2012-07-19 12:52   ` Varun Vats
  0 siblings, 0 replies; 3+ messages in thread
From: Varun Vats @ 2012-07-19 12:52 UTC (permalink / raw)
  To: Moritz Ulrich; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

Hi Moritz,

Thank you for the tip. That worked for me!

--
Sincerely,
Varun Vats
Graduate Student
University of Wisconsin, Madison
mailvarunvats@gmail.com

[-- Attachment #2: Type: text/html, Size: 297 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-19 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-19  8:20 Setting Refiling Targets Varun Vats
2012-07-19 11:05 ` Moritz Ulrich
2012-07-19 12:52   ` Varun Vats

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).