ob-tangle: do not run make-directory with nil argument
commit063c8b03b733371ebae473225e0526c905264b4e
authorAchim Gratz <Stromeko@Stromeko.DE>
Sat, 3 May 2014 08:12:10 +0000 (3 10:12 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Sat, 3 May 2014 08:12:10 +0000 (3 10:12 +0200)
treecb8f8d3121435220415e6060a27b1309e7821b52
parenta52fcbf9882c3e61e1c786e11cfe01878b456e65
ob-tangle: do not run make-directory with nil argument

* lisp/ob-tangle.el (org-babel-tangle): When `file-name-directory'
  returns nil, do not run make-directory.  Remove superfluous when
  clauses by using short-circuiting `and' instead.

Thanks to R. Michael Weylandt for reporting the problem and offering a
patch.

http://permalink.gmane.org/gmane.emacs.orgmode/85749
http://permalink.gmane.org/gmane.emacs.orgmode/85774
lisp/ob-tangle.el