From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: org-agenda-file-regexp not used in org.el? Date: Sat, 29 Dec 2007 13:15:27 +0100 Message-ID: <873atlu274.fsf@bzg.ath.cx> References: <4772C799.5020409@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8abG-0002RZ-Hz for emacs-orgmode@gnu.org; Sat, 29 Dec 2007 07:15:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8abE-0002N9-Bu for emacs-orgmode@gnu.org; Sat, 29 Dec 2007 07:15:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8abE-0002Ms-3v for emacs-orgmode@gnu.org; Sat, 29 Dec 2007 07:15:32 -0500 Received: from fk-out-0910.google.com ([209.85.128.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8abE-0007D5-1Q for emacs-orgmode@gnu.org; Sat, 29 Dec 2007 07:15:32 -0500 Received: by fk-out-0910.google.com with SMTP id 26so4581228fkx.10 for ; Sat, 29 Dec 2007 04:15:31 -0800 (PST) In-Reply-To: <4772C799.5020409@gmail.com> (Wanrong Lin's message of "Wed, 26 Dec 2007 16:28:57 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Wanrong Lin Cc: emacs-orgmode@gnu.org --=-=-= Wanrong Lin 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--