> For example (untested)
>
> (defun my-refile-to-reference ()
>  (interactive)
>  (let ((org-refile-targets (list (directory-files "~/Reference/ 'full
> "*.org")
>                                  '(:maxlevel . 1))))
>     (call-interactively 'org-refile)))
>
> Would offer all top-level headlines in any org files in the ~/Reference
> directory

"directory-files" only outputs directories but no .org files
therefore with the pattern "*.org" as a filter ... nothing is returned!

But I like the idea a lot!
Should "directory-files" list all files inside a directory?

Greetings,
Eraldo


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to