From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Lists for org-refile-targets Date: Fri, 04 Dec 2009 11:45:44 -0500 Message-ID: <27084.1259945144@gamaville.dokosmarshall.org> References: <211769420912040810r530be418g6eaf4e5589c02121@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGbJQ-0004bI-J0 for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:47:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGbJL-0004YS-VD for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:47:20 -0500 Received: from [199.232.76.173] (port=35638 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGbJL-0004YN-PF for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:47:15 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:33850) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGbJL-0005uJ-Hw for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:47:15 -0500 Received: from gamaville.dokosmarshall.org ([173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KU400EEMZVL5BC8@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 10:45:22 -0600 (CST) In-reply-to: Message from Nathan Neff of "Fri\, 04 Dec 2009 10\:10\:22 CST." <211769420912040810r530be418g6eaf4e5589c02121@mail.gmail.com> 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: Nathan Neff Cc: emacs-orgmode@gnu.org Nathan Neff wrote: > Currently, I'm getting an error when I try to refile my notes > and I think it's something very basic. >=20 > Here's the relevant code: >=20 > ;; Use environment variable $ORGDIR to get dir for org-directory > (setq org-directory (getenv "ORGDIR")) > (setq notesmine-dir "~/Documents/notesmine-org") >=20 > (setq org-agenda-files (file-expand-wildcards (concat org-directory "/*.o= rg"))) > (setq notesmine-files (file-expand-wildcards (concat notesmine-dir "/*.or= g"))) >=20 > ; Targets include this file and any file contributing to the agenda - up = to 5 levels deep > (setq org-refile-targets > =C2=A0 (quote > =C2=A0=C2=A0=C2=A0 ( > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (org-agenda-files :maxlevel . 5) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (notesmine-files :maxlevel . 5) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (nil :maxlevel . 5) > =C2=A0=C2=A0=C2=A0 ) > =C2=A0 ) > ) >=20 > I've tried concatenating org-agenda-files and notesmine-files, but I keep= getting errors > when trying to refile.=C2=A0 The error that I get is: > "Wrong type argument, numberp (0.5)" >=20 > I can provide a stack trace, but I don't think this is a bug -- I just th= ink that > I'm not concatenating the list of files that I want to use in org-refile-= targets > correctly. >=20 [A stacktrace is always useful. It doesn't matter whether it's a bug in org= or in your code: it can help narrow down the problem] I suspect that the last line is the problem: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (nil :maxlevel . 5) What happens if you delete it? HTH, Nick