From: Paul Eggert Date: Mon, 11 Sep 2017 05:22:55 +0000 (-0700) Subject: Adjust ob-tangle to new copy-file behavior X-Git-Tag: emacs-26.0.90~195 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=74b8615fcceba7b92c4938e1bcc92015f10ae899;p=emacs.git Adjust ob-tangle to new copy-file behavior * lisp/org/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file behavior. --- diff --git a/lisp/org/ob-tangle.el b/lisp/org/ob-tangle.el index 3b0533261c6..2dc55caf89c 100644 --- a/lisp/org/ob-tangle.el +++ b/lisp/org/ob-tangle.el @@ -197,6 +197,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