Browse Source

Implement patch by Stefan Monnier

Carsten Dominik 15 years ago
parent
commit
d325d0c255
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -8635,7 +8635,7 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
 	  (save-match-data
 	    (if (string-match (concat "^" (regexp-quote
 					   (file-name-as-directory
-					    (expand-file-name "."))))
+					    default-directory)))
 			      (expand-file-name path))
 		;; We are linking a file with relative path name.
 		(setq path (substring (expand-file-name path)