From mboxrd@z Thu Jan 1 00:00:00 1970 From: "W.Bentley MacLeod" Subject: Re: FAQ incorrect Date: Tue, 27 Oct 2009 11:03:54 -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 1N2naf-0001bj-GC for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:04:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2nab-0001bH-Vj for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:04:05 -0400 Received: from [199.232.76.173] (port=59290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2nab-0001bE-PG for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:04:01 -0400 Received: from serrano.cc.columbia.edu ([128.59.29.6]:35846) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2nab-000471-97 for emacs-orgmode@gnu.org; Tue, 27 Oct 2009 11:04:01 -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 perfect. b. ____________________________ 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 > > >