From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] question about org-agenda-files Date: Sat, 7 Aug 2010 08:18:03 +0200 Message-ID: <70C0FD6B-09A8-463E-AC6E-86CFC2DC369F@gmail.com> References: <87zkx087oj.fsf@gnu.org> <4CB19CCB-1A75-41BF-8835-F839AA578624@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=58000 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhcjT-0008Qa-Dk for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 02:18:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhcjP-0003Is-Hp for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 02:18:11 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:44266) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhcjP-0003Ig-As for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 02:18:07 -0400 Received: by eydd26 with SMTP id d26so3303718eyd.0 for ; Fri, 06 Aug 2010 23:18:06 -0700 (PDT) In-Reply-To: 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: Noorul Islam Cc: emacs-orgmode@gnu.org, Bastien On Aug 6, 2010, at 4:14 PM, Noorul Islam wrote: > > > On Fri, Aug 6, 2010 at 4:12 PM, Carsten Dominik > wrote: > > On Aug 6, 2010, at 10:30 AM, Bastien wrote: > > Rustom Mody writes: > > Why is it that if org-agenda-files is a list the list should have > absolute file names whereas when it (points to) a single file > containing the names those names are allowed to be relative to > org-directory? > > I guess this is a small historical contingency. We might indeed allow > relative filenames when `org-agenda-files' is a list. > > I agree and would welcome a patch for this. > > > Changing this behavior is going to be a significant one as far as > the current users are concerned. I started working towards a patch > for this and now I am thinking how not to break existing > functionality. Or should we force everyone to be relative to org- > directory? Hmm, indeed, it might not be as simple, because there are a number of commands that manipulate these files. Let's not do this for now - it needs a careful look. - Carsten > > Here is the simple patch which straight away expands the file names > with org-directory. > > * org.el: > + org-expand-file-list () > Expand the list of agenda files in "org-agenda-files" with "org- > directory" as base directory. > + org-agenda-files () > Call org-expand-file-list() if "org-agenda-files" is a list. > > Thanks and Regards > Noorul > > - Carsten > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten