From mboxrd@z Thu Jan 1 00:00:00 1970 From: "W.Bentley MacLeod" Subject: Re: FAQ incorrect Date: Tue, 27 Oct 2009 11:05:30 -0400 (EDT) Message-ID: References: <87eioonb68.fsf@in-ulm.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2ncA-00021s-TC for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:05:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2nc6-00021B-CN for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:05:38 -0400 Received: from [199.232.76.173] (port=34314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2nc6-000216-8u for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:05:34 -0400 Received: from tarap.cc.columbia.edu ([128.59.29.7]:60792) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2nc5-0004K8-SS for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:05:33 -0400 In-Reply-To: <87eioonb68.fsf@in-ulm.de> 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: Benjamin Andresen Cc: emacs-orgmode@gnu.org Yes, that is the error I got. I like your solution. ____________________________ Professor W. Bentley MacLeod Columbia University in the City of New York, NY 10027 http://www.columbia.edu/~wbm2103/ ____________________________ On Tue, 27 Oct 2009, Benjamin Andresen wrote: > 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 > > >