From 2ddc4a8061d86f8dab54f5a833130ffa057cce5d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 23 Sep 2013 00:44:43 +0200 Subject: [PATCH] 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. --- kaarvok.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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