]> git.eshelyaron.com Git - emacs.git/commitdiff
(archive-maybe-copy): If ARCHIVE includes leading
authorEli Zaretskii <eliz@gnu.org>
Tue, 27 Apr 2004 12:45:26 +0000 (12:45 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 27 Apr 2004 12:45:26 +0000 (12:45 +0000)
directories, make sure they exist under archive-tmpdir.

lisp/ChangeLog
lisp/arc-mode.el

index 5a3b646bc72d96c0ac9a0d4688cd7071004726d4..6df7d54191cd947b858a9182fe44c75c4750bf58 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-27  Daniel M Coffman  <coffmand@us.ibm.com>  (tiny change)
+
+       * arc-mode.el (archive-maybe-copy): If ARCHIVE includes leading
+       directories, make sure they exist under archive-tmpdir.
+
 2004-04-27  Juri Linkov  <juri@jurta.org>
 
        * help.el (view-emacs-news): With argument, display info for the
index 7ac7a402c3ad0a7be7fef72ed3fe15110886b7cc..2cb20b4545deffb70a35d8ac5a8b47fd63267c27 100644 (file)
@@ -815,6 +815,14 @@ using `make-temp-file', and the generated name is returned."
               (or (and archive-subfile-mode (aref archive-subfile-mode 0))
                   archive)))
          (make-directory archive-tmpdir t)
+         ;; If ARCHIVE includes leading directories, make sure they
+         ;; exist under archive-tmpdir.
+         (let ((arch-dir (file-name-directory archive)))
+           (if arch-dir
+               (make-directory (concat
+                                (file-name-as-directory archive-tmpdir)
+                                arch-dir)
+                               t)))
          (setq archive-local-name
                (archive-unique-fname archive-name archive-tmpdir))
          (save-restriction