emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Nathan Neff <nathan.neff@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Lists for org-refile-targets
Date: Fri, 04 Dec 2009 11:45:44 -0500	[thread overview]
Message-ID: <27084.1259945144@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Nathan Neff <nathan.neff@gmail.com> of "Fri\, 04 Dec 2009 10\:10\:22 CST." <211769420912040810r530be418g6eaf4e5589c02121@mail.gmail.com>

Nathan Neff <nathan.neff@gmail.com> wrote:

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

[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:

>       (nil :maxlevel . 5)

What happens if you delete it?

HTH,
Nick

  reply	other threads:[~2009-12-04 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04 16:10 Lists for org-refile-targets Nathan Neff
2009-12-04 16:45 ` Nick Dokos [this message]
     [not found]   ` <211769420912041023m5a592367jc85e5397ecdb1a1e@mail.gmail.com>
2009-12-04 18:25     ` Nathan Neff
     [not found]     ` <28578.1259953419@gamaville.dokosmarshall.org>
2009-12-04 19:17       ` Nathan Neff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27084.1259945144@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nathan.neff@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).