From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Bug: org-agenda-file-regexp not used in org.el? Date: Wed, 26 Dec 2007 16:28:57 -0500 Message-ID: <4772C799.5020409@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7doJ-00015a-Jz for emacs-orgmode@gnu.org; Wed, 26 Dec 2007 16:29:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7doH-00011i-Lp for emacs-orgmode@gnu.org; Wed, 26 Dec 2007 16:29:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7doH-00011X-GG for emacs-orgmode@gnu.org; Wed, 26 Dec 2007 16:29:05 -0500 Received: from py-out-1112.google.com ([64.233.166.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J7doH-0000vX-8U for emacs-orgmode@gnu.org; Wed, 26 Dec 2007 16:29:05 -0500 Received: by py-out-1112.google.com with SMTP id a73so5506436pye.14 for ; Wed, 26 Dec 2007 13:29:01 -0800 (PST) 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: emacs-orgmode@gnu.org Hi, 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. Wanrong