From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with automatic recursive adding of org-agenda-files Date: Wed, 23 Oct 2013 08:32:34 -0400 Message-ID: <8738nskw0t.fsf@gmail.com> References: <87zjq0dydq.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYxcP-0005yz-0M for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYxcJ-0003Xc-4B for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:32:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:33242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYxcI-0003XU-TB for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:32:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VYxcD-0005IS-OS for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 14:32:45 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Oct 2013 14:32:45 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Oct 2013 14:32:45 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Abrahamsen writes: > Tor Eriksson 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