From mboxrd@z Thu Jan 1 00:00:00 1970 From: Varun Vats Subject: Setting Refiling Targets Date: Thu, 19 Jul 2012 13:50:01 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb202a0964c9604c52a7406 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srlyc-0003Fb-Pb for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 04:20:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrlyV-0001UG-7l for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 04:20:50 -0400 Received: from mail-gh0-f169.google.com ([209.85.160.169]:45037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrlyU-0001U1-Vz for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 04:20:43 -0400 Received: by ghrr18 with SMTP id r18so2965335ghr.0 for ; Thu, 19 Jul 2012 01:20:42 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --e89a8fb202a0964c9604c52a7406 Content-Type: text/plain; charset=ISO-8859-1 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 --e89a8fb202a0964c9604c52a7406 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am trying to add to my refile target list a file t= hat exists in a sub-directory of org-= directory. I have tried to do this by concatenating =A0the variable= =A0org-director= y with the string contai= ning the path to the file like so:

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

This does not= seem the right way to do it as I get the error=A0org-refile-get-targets: Bad refiling target description= (org-directory /projects/project.org :m= axlevel . 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 V= ats
Graduate Student
University of Wisconsin, Madison
mailvarunvats@gmail.com


--e89a8fb202a0964c9604c52a7406-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Varun Vats Subject: Re: Setting Refiling Targets Date: Thu, 19 Jul 2012 18:22:06 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb2067e94443804c52e414e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrqDo-0004CZ-3a for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 08:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrqDn-0001KY-37 for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 08:52:48 -0400 Received: from mail-gg0-f169.google.com ([209.85.161.169]:59592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrqDm-0001KT-Tg for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 08:52:46 -0400 Received: by ggm4 with SMTP id 4so3234612ggm.0 for ; Thu, 19 Jul 2012 05:52:46 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Moritz Ulrich Cc: emacs-orgmode@gnu.org --e89a8fb2067e94443804c52e414e Content-Type: text/plain; charset=ISO-8859-1 Hi Moritz, Thank you for the tip. That worked for me! -- Sincerely, Varun Vats Graduate Student University of Wisconsin, Madison mailvarunvats@gmail.com --e89a8fb2067e94443804c52e414e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Moritz,

Thank you for the tip. That worked for me!

--
Sincerely,
Varun Vats
Graduate Studen= t
University of Wisconsin, Madison
mailvarunvats@gmail.com


--e89a8fb2067e94443804c52e414e-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moritz Ulrich Subject: Re: Setting Refiling Targets Date: Thu, 19 Jul 2012 13:05:36 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SroYV-0005SR-GG for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 07:06:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SroYP-0004BU-Ne for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 07:06:03 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:63905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SroYP-0004BI-Hi for emacs-orgmode@gnu.org; Thu, 19 Jul 2012 07:05:57 -0400 Received: by obhx4 with SMTP id x4so4491124obh.0 for ; Thu, 19 Jul 2012 04:05:56 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Varun Vats Cc: emacs-orgmode@gnu.org 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 wrote: > (setq org-refile-targets '((nil :maxlevel . 9) > (org-agenda-files :maxlevel . 9) > (concat org-directory "/projects/project.org" > :maxlevel . 9)))