From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: org-agenda-files skips two files Date: Mon, 18 Feb 2013 13:34:00 +0800 Message-ID: <87621qfanr.fsf@ericabrahamsen.net> References: <87lianbj45.fsf@ericabrahamsen.net> <87r4kfx88f.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7JHZ-0000ee-Ld for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 00:28:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7JHY-0002jy-Ga for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 00:28:53 -0500 Received: from plane.gmane.org ([80.91.229.3]:59144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7JHY-0002iq-Ad for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 00:28:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U7JHo-0000Vm-32 for emacs-orgmode@gnu.org; Mon, 18 Feb 2013 06:29:08 +0100 Received: from 114.250.105.255 ([114.250.105.255]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2013 06:29:08 +0100 Received: from eric by 114.250.105.255 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2013 06:29:08 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Memnon Anon writes: > Hi, > > Eric Abrahamsen 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)) Oh, I had read this wrong -- for some reason I thought it was just looping over the already-populated variable. But the real problem was that org-agenda-files somehow got written as a customize variable, I have no idea when or how, and so was locked in state. Total user error. Sorry about that...