From: Juri Linkov Date: Fri, 12 Feb 2010 19:35:45 +0000 (+0200) Subject: * arc-mode.el (archive-unique-fname): Make directories for nested X-Git-Tag: emacs-pretest-23.1.93~67 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f5952338f46ba62c42054a64c4b8b75ec6dfb51f;p=emacs.git * arc-mode.el (archive-unique-fname): Make directories for nested archives. (Bug#5540) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6be182f744a..702f283a9ff 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-02-12 Juri Linkov + + * arc-mode.el (archive-unique-fname): Make directories for nested + archives. (Bug#5540) + 2010-02-12 Juri Linkov * ffap.el (dired-at-point): Fix docstring. (Bug#5565) diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index ee32d893654..5942e920a65 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -834,6 +834,11 @@ using `make-temp-file', and the generated name is returned." ;; reconstructed in the temporary directory. (make-directory (file-name-directory tmpfile) t) (make-temp-file tmpfile)) + ;; Maked sure all the leading directories in `fullname' exist + ;; under archive-tmpdir. This is necessary for nested archives + ;; (`archive-extract' sets `archive-remote' to t in case + ;; an archive occurs inside another archive). + (make-directory (file-name-directory fullname) t) fullname))) (defun archive-maybe-copy (archive)