summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-09-10 22:22:55 -0700
committerKyle Meyer <kyle@kyleam.com>2017-09-17 00:05:20 -0400
commitd3912e7f32dc2ac72dc026514fa14b33d969225a (patch)
tree6bcabdf3c3f3d6051039bf325b726396ddf32dc5
parent9fb98f4c9c6f5910c14b4d75be937873a4bc07f3 (diff)
downloadorg-mode-d3912e7f32dc2ac72dc026514fa14b33d969225a.tar.gz
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
-rw-r--r--lisp/ob-tangle.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index b33fcae..ed757cb 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