From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Andresen Subject: Re: FAQ incorrect Date: Tue, 27 Oct 2009 15:50:23 +0100 Message-ID: <87eioonb68.fsf@in-ulm.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2nNp-0003QG-KT for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 10:50:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2nNl-0003Ng-R3 for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 10:50:49 -0400 Received: from [199.232.76.173] (port=44900 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2nNl-0003Nb-LG for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 10:50:45 -0400 Received: from mail.in-ulm.de ([217.10.8.10]:34987) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N2nNl-0002Dq-1V for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 10:50:45 -0400 In-Reply-To: (W. Bentley MacLeod's message of "Tue, 27 Oct 2009 09:10:09 -0400 (EDT)") 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: "W.Bentley MacLeod" Cc: emacs-orgmode@gnu.org Hey W., "W.Bentley MacLeod" writes: > FAQ on how to include all org files in a directory is incorrect (view 85). > Correct code is: > (setq org-agenda-files (file-expand-wildcards "~/org-files/*.org")) You are right. This isn't valid: (setq org-agenda-files "~/my/special/path/org/") M-x org-agenda RET will reply with: `org-agenda-files' cannot be a single directory I propose the following for the FAQ: (setq org-agenda-directory "~/Org/") (setq org-agenda-files (directory-files (expand-file-name org-agenda-directory) t "^[^\.][^#][[:alnum:]]+\.org$")) That will add every org file. I've had the problem of normal glob expansion to include emacs lock files that are in this format: .#todo.org I was under the impression that org-agenda-directory set to ~/my/special/path/org/ would Just Work(tm) because if you do C-c a a v A it pulls in the right files for me. > best bm br, benny