From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with automatic recursive adding of org-agenda-files
Date: Wed, 23 Oct 2013 08:32:34 -0400 [thread overview]
Message-ID: <8738nskw0t.fsf@gmail.com> (raw)
In-Reply-To: 87zjq0dydq.fsf@ericabrahamsen.net
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Tor Eriksson <teriksson2000@gmail.com> writes:
>
>> Hello all,
>>
>> I have searched the web without finding a solution to the following
>> problem:
>>
>> I am using this snippet in my .emacs.d (using emacs starterkit) to
>> dynamically and recursively load all org files in the directory
>> "important-directory" and any subdirectory of this directory:
>>
>> (load-library "find-lisp")
>> (setq org-agenda-files (find-lisp-find-files "/home/user/important-directory" "\.org$"))
>>
>> The snippet comes from http://orgmode.org/worg/org-faq.html
>>
>> This set-up has worked fine for more than two years; every time I add
>> a new subdirectory with an .org file, this file gets picked up for
>> the agenda.
>
> I don't know why that's not working, but I'm doing this:
>
> (setq org-agenda-files '("~/org/"))
>
> And it works out fine. It will pick up all files under that directory
> that match `org-agenda-file-regexp', which defaults as everything ending
> in ".org". You might try that with "/home/user/important-directory/"?
>
IIUC, this does not do a recursive enumeration though...
> FWIW, I don't even have a `find-lisp-find-files' function in my
> installation (GNU Emacs 24.3.1).
>
...whereas this does (I gather - I don't have find-lisp-find-files
either, so it's probably some add-on that the OP installed).
Back to the original problem: does
(find-lisp-find-files "/home/user/important-directory" "\.org$")
enumerate the "missing" file? What does it return?
--
Nick
next prev parent reply other threads:[~2013-10-23 12:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 10:22 Problem with automatic recursive adding of org-agenda-files Tor Eriksson
2013-10-23 11:23 ` Eric Abrahamsen
2013-10-23 12:32 ` Nick Dokos [this message]
2013-10-24 11:49 ` Nick Dokos
2013-10-24 12:58 ` Tor Eriksson
2013-10-24 13:15 ` Nicolas Richard
2013-10-24 15:00 ` Tor Eriksson
2013-10-23 16:02 ` Nicolas Richard
2013-10-24 5:28 ` Eric Abrahamsen
-- strict thread matches above, loose matches on Subject: below --
2013-10-23 9:37 Tor Eriksson
2013-10-23 9:52 ` Tor Eriksson
2013-10-26 14:12 ` Sebastien Vauban
2013-10-26 17:27 ` Mike McLean
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=8738nskw0t.fsf@gmail.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).