Procházet zdrojové kódy

Fix bug with getting list of attachments.

Carsten Dominik před 17 roky
rodič
revize
b0ce57d27d
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 4 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-attach.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2008-10-08  Carsten Dominik  <dominik@science.uva.nl>
+
+	* org-attach.el (org-attach-file-list): Fix bug with directory.
+
 2008-10-07  Carsten Dominik  <dominik@science.uva.nl>
 
 	* org.el (org-apps-regexp-alist): New function.

+ 1 - 1
lisp/org-attach.el

@@ -270,7 +270,7 @@ This can be used after files have been added externally."
 This ignores files starting with a \".\", and files ending in \"~\"."
   (delq nil
 	(mapcar (lambda (x) (if (string-match "^\\." x) nil x))
-		(directory-files "." nil "[^~]\\'"))))
+		(directory-files dir nil "[^~]\\'"))))
 
 (defun org-attach-reveal ()
   "Show the attachment directory of the current task in dired."