瀏覽代碼

Fix bug with access to agenda files when resolving clocks

Carsten Dominik 15 年之前
父節點
當前提交
4fd182b936
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 1 - 0
lisp/ChangeLog

@@ -1,6 +1,7 @@
 2009-10-27  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-default-properties): Add STYLE property.
+	(org-files-list): Use the function call to get the files.
 
 2009-10-26  Carsten Dominik  <carsten.dominik@gmail.com>
 

+ 1 - 1
lisp/org.el

@@ -5362,7 +5362,7 @@ are at least `org-cycle-separator-lines' empty lines before the headline."
   "Return `org-agenda-files' list, plus all open org-mode files.
 This is useful for operations that need to scan all of a user's
 open and agenda-wise Org files."
-  (let ((files (mapcar 'expand-file-name org-agenda-files)))
+  (let ((files (mapcar 'expand-file-name (org-agenda-files))))
     (dolist (buf (buffer-list))
       (with-current-buffer buf
 	(if (and (eq major-mode 'org-mode) (buffer-file-name))