From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Lists for org-refile-targets Date: Fri, 4 Dec 2009 10:10:22 -0600 Message-ID: <211769420912040810r530be418g6eaf4e5589c02121@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0217007446==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGajl-0001ZH-JI for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:10:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGajh-0001Yh-1B for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:10:29 -0500 Received: from [199.232.76.173] (port=56760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGajg-0001Ye-Sw for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:10:24 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:37410) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGajg-0002Lo-O2 for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 11:10:24 -0500 Received: by bwz7 with SMTP id 7so2267300bwz.26 for ; Fri, 04 Dec 2009 08:10:23 -0800 (PST) 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: emacs-orgmode@gnu.org --===============0217007446== Content-Type: multipart/alternative; boundary=0015175ccf5c5257a70479e958d0 --0015175ccf5c5257a70479e958d0 Content-Type: text/plain; charset=ISO-8859-1 Hello, I'm not a lisp programmer -- I would like to tell org-mode to use two lists of files (org-agenda-files and notesmine-files) when I refile my remember notes. Currently, I'm getting an error when I try to refile my notes and I think it's something very basic. Here's the relevant code: ;; Use environment variable $ORGDIR to get dir for org-directory (setq org-directory (getenv "ORGDIR")) (setq notesmine-dir "~/Documents/notesmine-org") (setq org-agenda-files (file-expand-wildcards (concat org-directory "/*.org"))) (setq notesmine-files (file-expand-wildcards (concat notesmine-dir "/*.org"))) ; Targets include this file and any file contributing to the agenda - up to 5 levels deep (setq org-refile-targets (quote ( (org-agenda-files :maxlevel . 5) (notesmine-files :maxlevel . 5) (nil :maxlevel . 5) ) ) ) I've tried concatenating org-agenda-files and notesmine-files, but I keep getting errors when trying to refile. The error that I get is: "Wrong type argument, numberp (0.5)" I can provide a stack trace, but I don't think this is a bug -- I just think that I'm not concatenating the list of files that I want to use in org-refile-targets correctly. Any suggestions? Thanks, --Nate --0015175ccf5c5257a70479e958d0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I'm not a lisp programmer -- I would like to tell org-mod= e to
use two lists of files (org-agenda-files and notesmine-files) when = I refile my remember notes.

Currently, I'm getting an error when= I try to refile my notes
and I think it's something very basic.

Here's the relevant c= ode:

;; Use environment variable $ORGDIR to get dir for org-director= y
(setq org-directory (getenv "ORGDIR"))
(setq notesmine-di= r "~/Documents/notesmine-org")

(setq org-agenda-files (file-expand-wildcards (concat org-directory &qu= ot;/*.org")))
(setq notesmine-files (file-expand-wildcards (concat = notesmine-dir "/*.org")))

; Targets include this file and = any file contributing to the agenda - up to 5 levels deep
(setq org-refile-targets
=A0 (quote
=A0=A0=A0 (
=A0=A0=A0=A0=A0 = (org-agenda-files :maxlevel . 5)
=A0=A0=A0=A0=A0 (notesmine-files :maxl= evel . 5)
=A0=A0=A0=A0=A0 (nil :maxlevel . 5)
=A0=A0=A0 )
=A0 ))

I've tried concatenating org-agenda-files and notesmine-file= s, but I keep getting errors
when trying to refile.=A0 The error that I get is:
"Wrong type argu= ment, numberp (0.5)"

I can provide a stack trace, but I don'= ;t think this is a bug -- I just think that
I'm not concatenating th= e list of files that I want to use in org-refile-targets
correctly.

Any suggestions?

Thanks,
--Nate

--0015175ccf5c5257a70479e958d0-- --===============0217007446== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0217007446==--