From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Crotti Subject: Re: Fast traversing directories Date: Sat, 31 Oct 2009 17:31:17 +0000 (UTC) Message-ID: References: <87skczlc2v.fsf@in-ulm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4Hnq-0004I2-Uu for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:31:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4Hnm-0004G5-8q for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:31:50 -0400 Received: from [199.232.76.173] (port=60899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4Hnl-0004Fj-CA for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:31:45 -0400 Received: from lo.gmane.org ([80.91.229.12]:55614) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4Hnk-0000WJ-MS for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:31:44 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N4Hni-0002uL-Vt for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 18:31:43 +0100 Received: from host63-85-static.24-87-b.business.telecomitalia.it ([87.24.85.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2009 18:31:42 +0100 Received: from andrea.crotti.0 by host63-85-static.24-87-b.business.telecomitalia.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2009 18:31:42 +0100 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 Benjamin Andresen in-ulm.de> writes: > > Hey Andrea, > > andrea Crotti gmail.com> writes: > > > I didn't find any function in elisp, maybe it would be better > > to get a list of org-files with an external command (python or shell script), > > what do you think? > > http://orgmode.org/worg/org-faq.php#set-agenda-files-recursively > > br, > benny > > That's really great! I tried this because I have more base directories. (setq org-directories '("~/org" "~/uni")) (setq org-agenda-files ()) (dolist ((d org-directories)) (setq org-agenda-files (append org-agenda-files (find-lisp-find-files d "\.org$")))) But it sets org-agenda-files to nil... Should I use maybe concat and some sort of mapping (for more elegance?)