emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org,
	"W.Bentley MacLeod" <bentley.macleod@columbia.edu>
Subject: Re: FAQ incorrect
Date: Tue, 27 Oct 2009 16:21:05 +0100	[thread overview]
Message-ID: <9C4DC40D-F4C9-496E-B66F-91FAA5DCB41C@gmail.com> (raw)
In-Reply-To: <4601.1256655409@gamaville.dokosmarshall.org>


On Oct 27, 2009, at 3:56 PM, Nick Dokos wrote:

> W.Bentley MacLeod <bentley.macleod@columbia.edu> wrote:
>
>> 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"))
>>
>
> If you are talking about this entry:
>
>    How can include all org files in a directory in my agenda?
>
>    You can simply set the value of org-agenda-files to a directory  
> rather than a list of files:
>
>    (setq org-agenda-files "~/my/special/path/org/")

Does that really work?  I believe it should be

    (setq org-agenda-files '("~/my/special/path/org/"))

i.e. each member of this list can be a file or a
directory.  If it is a directory, the org files in
it will be used.

- Carsten

>
> it is correct as it stands: unless you are using a really ancient
> version, org figures out that it's a directory and sets org-agenda- 
> files
> to the contents of the directory (filtered by org-agenda-file-regexp,
> which by default matches filenames ending in ".org").
>
> HTH,
> Nick
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2009-10-27 15:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27 13:10 FAQ incorrect W.Bentley MacLeod
2009-10-27 14:50 ` Benjamin Andresen
2009-10-27 15:03   ` W.Bentley MacLeod
2009-10-27 15:05   ` W.Bentley MacLeod
2009-10-27 14:56 ` Nick Dokos
2009-10-27 15:21   ` Carsten Dominik [this message]
2009-10-27 15:29     ` Nick Dokos
2009-10-27 17:02       ` Matt Lundin
2009-10-27 15:00 ` Matt Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9C4DC40D-F4C9-496E-B66F-91FAA5DCB41C@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bentley.macleod@columbia.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).