From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Crotti Subject: Fast traversing directories Date: Sat, 31 Oct 2009 17:07:06 +0000 (UTC) Message-ID: 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 1N4HR5-0002wB-91 for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:08:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4HR0-0002vi-OS for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:08:18 -0400 Received: from [199.232.76.173] (port=32832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4HR0-0002vf-JP for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:08:14 -0400 Received: from lo.gmane.org ([80.91.229.12]:35147) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4HR0-0005lY-18 for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 13:08:14 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N4HQg-0001cQ-EJ for emacs-orgmode@gnu.org; Sat, 31 Oct 2009 18:07:54 +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:07:49 +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:07:49 +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 Well I would like to have simply all the org files I produce wherever in my agenda. I started to write something like (dolist (x (directory-files "~/uni/" t)) (if (file-directory-p x) (dolist (subject (directory-files x t)) (if (file-directory-p subject) (setq org-agenda-files (append org-agenda-files (directory-files subject t ".org$" t))))))) but the problem is that it only goes two levels and I guess it could be very slow. 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? I don't like the solution of setting them by hand, I would like to set the upper level directory and make it searches inside it automatically... How do you manage your org files?