diff options
author | Tom Willemse | 2013-09-23 00:44:43 +0200 |
---|---|---|
committer | Tom Willemse | 2013-09-23 00:47:18 +0200 |
commit | 2ddc4a8061d86f8dab54f5a833130ffa057cce5d (patch) | |
tree | 98224f939696054af2e25d9b7f1c75079f242b8b | |
parent | 4c157a4d5dc1fe7c4dfbfd3c05572942e46d2a80 (diff) | |
download | kaarvok-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.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |