0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-25 02:32:53 +00:00

Expand file names in org-agenda-files (external file case)

Patch by Mikael Fornius.
This commit is contained in:
Carsten Dominik 2010-03-24 12:55:55 +01:00
parent 15ec1c56ad
commit 42589b32c2
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2010-03-24 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-read-agenda-file-list): Interpret file names
relative to org-directory and allow environment variables and
"~".
* org-latex.el (org-export-latex-special-chars): Allow a
parenthesis before an exponent or subscript.

View file

@ -14672,8 +14672,11 @@ the buffer and restores the previous window configuration."
(when (stringp org-agenda-files)
(with-temp-buffer
(insert-file-contents org-agenda-files)
(org-split-string (buffer-string) "[ \t\r\n]*?[\r\n][ \t\r\n]*"))))
(mapcar
(lambda (f)
(expand-file-name (substitute-in-file-name f)
(file-name-directory org-agenda-files)))
(org-split-string (buffer-string) "[ \t\r\n]*?[\r\n][ \t\r\n]*")))))
;;;###autoload
(defun org-cycle-agenda-files ()