all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-agenda-files skips two files
Date: Sun, 17 Feb 2013 15:42:59 +0000 (UTC)	[thread overview]
Message-ID: <87r4kfx88f.fsf@mean.albasani.net> (raw)
In-Reply-To: 87lianbj45.fsf@ericabrahamsen.net

Hi,

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> I've noticed for a while that two org files in my ~/org directory never
> get added to org-agenda-files, and I can't figure out why. My
> org-agenda-files is set to '("~/org/"), and yet:
>
> (dolist (f (directory-files "~/org" t "org$"))
>   (unless (member f org-agenda-files)
>     (insert (format "%s: %s\n" f (file-attributes f)))))
>
> /home/eric/org/epubnotes.org: (nil 1 1000 100 (20752 42274) (20740 56906) (20740 56906) 10673 -rw-r--r-- nil 8655230 2052)
> /home/eric/org/running.org: (nil 1 1000 100 (20768 26205) (20768 21290) (20768 24128) 423435 -rw-r--r-- nil 5375520 2052)

Did you try edebuging defun org-agenda-files in org.el?

Seems like the relevant bit that extracts all org files from the
directory is:

(apply 'append (mapcar (lambda (f)
			 (if (file-directory-p f)
			     (directory-files
			      f t org-agenda-file-regexp)
			   (list f)))
		       org-agenda-files))

Are epubnotes.org and running.org getting returned with the other files?
Do you have org-agenda-skip-unavailable-files set to t?

Memnon

  reply	other threads:[~2013-02-17 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-17  5:32 org-agenda-files skips two files Eric Abrahamsen
2013-02-17 15:42 ` Memnon Anon [this message]
2013-02-18  5:34   ` Eric Abrahamsen

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

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

  git send-email \
    --in-reply-to=87r4kfx88f.fsf@mean.albasani.net \
    --to=gegendosenfleisch@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.