From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tor Eriksson Subject: Problem with automatic recursive adding of org-agenda-files Date: Wed, 23 Oct 2013 09:37:50 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2c7da4857a404e9654592 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYusz-0005Mh-2Q for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 05:37:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYusx-0002KG-2X for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 05:37:53 -0400 Received: from mail-vb0-x244.google.com ([2607:f8b0:400c:c02::244]:46139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYusw-0002KA-TH for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 05:37:51 -0400 Received: by mail-vb0-f68.google.com with SMTP id i3so64262vbh.7 for ; Wed, 23 Oct 2013 02:37:50 -0700 (PDT) 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 --001a11c2c7da4857a404e9654592 Content-Type: text/plain; charset=ISO-8859-1 Hello all, I have searched the web without finding a solution to the following problem: I am using this snippet in my .emacs.d (using emacs starterkit) to dynamically and recursively load all org files in the directory "important-directory" and any subdirectory of this directory: (load-library "find-lisp") (setq org-agenda-files (find-lisp-find-files "/home/user/important-directory" "\.org$")) The snippet comes from http://orgmode.org/worg/org-faq.html This set-up has worked fine for more than two years; every time I add a new subdirectory with an .org file, this file gets picked up for the agenda. My problem is that now suddenly, one subdirectory with an .org file does not get picked up and I can not for the world figure out what is wrong. I had a file important-directory/sd/file.org that was picked up by the snippet. Then, without restarting, I changed the name to file-2.org. When refreshing the agenda with "g" it complains that the file is missing: "Non-existent agenda file ..../file.org. [R]emove from list or [A]bort?". I chose Remove, thinking that restarting emacs with the snippet would pick up the new file name instead. However, what happens is that the new file name is not picked up. If I restart/run snippet, org-agenda-files is built but without the new file. I tested to see if some other code were responsible by commenting out the snippet with ;;. Upon restart org-agenda-files was not built/created as expected. Uncommenting the snippet and org-agenda-files was back but still without the new file file2.org. In fact, now I can not get the snippet to pick up *any *new .org file in the directory .../important-directory or subdiretory! Even when the new .org file sits adjacent to a file that is picked up by the snippet. Also, if I do the same procedure again to another file that is picked up by the snippet by: changing the name of the file, updating agenda with g and pressing Abort. Then this file is also not picked up any more; not under the new name or, if I change the name back, under it's old name. This is causing serious trouble to me, since I use this system to keep track of deadlines that are really important. Does anybody have any ideas? Kind regards, Tor --001a11c2c7da4857a404e9654592 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello all,

I have searched the web witho= ut finding a solution to the following problem:

I am usin= g this snippet in my .emacs.d (using emacs starterkit) to dynamically and r= ecursively load all org files in the directory "important-directory&qu= ot; and any subdirectory of this directory:
(load-library "find-lisp")
(setq org-agenda-files (find-lisp-find-files "/home/user/important-dir=
ectory" "\.org$"))
The snippet comes from http://orgmode.org/worg/org-faq.html

I had a file important-directory/sd/file.org that was picked up by the snippet. Then, without restartin= g, I changed the name to file-2.org. When= refreshing the agenda with "g" it complains that the file is mis= sing:
"Non-existent agenda file ..../= file.org. [R]emove from list or [A]bort?".

I cho= se Remove, thinking that restarting emacs with the snippet would pick up th= e new file name instead.

However, what happens is that the new file name is not picke= d up. If I restart/run snippet, org-agenda-files is built but without the n= ew file.

I tested to see if some other code were respons= ible by commenting out the snippet with ;;. Upon restart org-agenda-files w= as not built/created as expected. Uncommenting the snippet and org-agenda-f= iles was back but still without the new file f= ile2.org.

In fact, now I can not get the snippet to pick up any new .org file in the directory .../important-directory or subdiretory! Eve= n when the new .org file sits adjacent to a file that is picked up by the s= nippet.

Also, if I do the same procedure again to another file that = is picked up by the snippet by: changing the name of the file, updating age= nda with g and pressing Abort. Then this file is also not picked up any mor= e; not under the new name or, if I change the name back, under it's old= name.

This is causing serious trouble to me, since I use this syst= em to keep track of deadlines that are really important.

= Does anybody have any ideas?

Kind regards,

Tor
--001a11c2c7da4857a404e9654592--