emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: [PATCH] question about org-agenda-files


From: Carsten Dominik
Subject: [Orgmode] Re: [PATCH] question about org-agenda-files
Date: Sat, 7 Aug 2010 08:18:03 +0200


On Aug 6, 2010, at 4:14 PM, Noorul Islam wrote:



On Fri, Aug 6, 2010 at 4:12 PM, Carsten Dominik <address@hidden > wrote:

On Aug 6, 2010, at 10:30 AM, Bastien wrote:

Rustom Mody <address@hidden> 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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

<org-agenda-files.txt>

- Carsten






reply via email to

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