emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Bug: org-agenda-file-regexp not used in org.el?


From: Bastien
Subject: Re: [Orgmode] Bug: org-agenda-file-regexp not used in org.el?
Date: Sat, 29 Dec 2007 13:15:27 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Wanrong Lin <address@hidden> writes:

> I am trying to customize the org-agenda-file-regexp variable to exclude
> those auto backup files starting with "#", but found out the regexp does
> not have any effect on agend file list. And I further found out it seems
> the variable org-agenda-file-regexp is not used in org.el at all. In
> function "org-agenda-files", the regular expression is hard coded to
> "\\.org\\'", as in these two lines:
>
> (if (file-directory-p f)
>     (directory-files f t "\\.org\\'")
>
> I wonder whether this is a bug and should be fixed. Thank you.

I think this should be fixed.  Here is a patch.

diff -u /home/guerry/elisp/testing/org/ /home/guerry/elisp/testing/bzg/org.el
--- /home/guerry/elisp/testing/org/org.el       2007-12-20 14:38:42.000000000 
+0100
+++ /home/guerry/elisp/testing/bzg/org.el       2007-12-29 13:13:03.000000000 
+0100
@@ -19618,7 +19618,7 @@
     (setq files (apply 'append
                       (mapcar (lambda (f)
                                 (if (file-directory-p f)
-                                    (directory-files f t "\\.org\\'")
+                                    (directory-files f t 
org-agenda-file-regexp)
                                   (list f)))
                               files)))
     (if org-agenda-skip-unavailable-files

Diff finished.  Sat Dec 29 13:13:41 2007
-- 
Bastien

reply via email to

[Prev in Thread] Current Thread [Next in Thread]