aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-09-23 00:44:43 +0200
committerGravatar Tom Willemse2013-09-23 00:47:18 +0200
commit2ddc4a8061d86f8dab54f5a833130ffa057cce5d (patch)
tree98224f939696054af2e25d9b7f1c75079f242b8b
parent4c157a4d5dc1fe7c4dfbfd3c05572942e46d2a80 (diff)
downloadkaarvok-2ddc4a8061d86f8dab54f5a833130ffa057cce5d.tar.gz
kaarvok-2ddc4a8061d86f8dab54f5a833130ffa057cce5d.zip
Expand file-name before use
Without expanding the file name to an absolute file name the following invocation would go wrong: ,---- | kaarvork some-template . `---- Because `kaarvok' would not know what to do with the `.' and errors would occur.
-rw-r--r--kaarvok.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/kaarvok.el b/kaarvok.el
index 55f1e0b..974e844 100644
--- a/kaarvok.el
+++ b/kaarvok.el
@@ -133,7 +133,8 @@ Replace any occurrences of variables with user-povided values."
(interactive "MTemplate: \nGDestination: ")
(let ((kaarvok-value-alist))
(kaarvok-copy-directory
- (concat kaarvok-templates-directory "/" template) destination)))
+ (concat kaarvok-templates-directory "/" template)
+ (expand-file-name destination))))
(provide 'kaarvok)
;;; kaarvok.el ends here