Commit db166c4dec40

Vincent Demeester <vincent@sbr.pm>
2015-08-18 13:23:33
Fix follow-pt-link pt-regexp
Use filename-as-directory so default-directory knows it's a directory and not a file..
1 parent 040ba9b
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -2064,7 +2064,7 @@
               (pt-regexp exp (expand-file-name "./")))
           (progn
             (setq folder (nth 1 expressions))
-            (pt-regexp exp (expand-file-name folder))))
+            (pt-regexp exp (file-name-as-directory (expand-file-name folder)))))
         )
     #+END_SRC