From d3912e7f32dc2ac72dc026514fa14b33d969225a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 Sep 2017 22:22:55 -0700 Subject: [PATCH] Backport commit 74b8615fc from Emacs * lisp/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file behavior. Adjust ob-tangle to new copy-file behavior 74b8615fcceba7b92c4938e1bcc92015f10ae899 Paul Eggert Sun Sep 10 22:31:23 2017 -0700 --- lisp/ob-tangle.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index b33fcaee4..ed757cb13 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -196,6 +196,7 @@ Return a list whose CAR is the tangled file name." "Tangle FILENAME and place the results in PUB-DIR." (unless (file-exists-p pub-dir) (make-directory pub-dir t)) + (setq pub-dir (file-name-as-directory pub-dir)) (mapc (lambda (el) (copy-file el pub-dir t)) (org-babel-tangle-file filename))) ;;;###autoload -- 2.11.4.GIT