]> git.eshelyaron.com Git - emacs.git/commitdiff
(tar-extract): Use `!' instead of `:' to construct
authorRichard M. Stallman <rms@gnu.org>
Wed, 29 Apr 1998 22:15:59 +0000 (22:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 29 Apr 1998 22:15:59 +0000 (22:15 +0000)
buffer-file-name (`:' is invalid in file names on Windows).

lisp/tar-mode.el

index dce8bee126c6175be8e6a67835483f935f1fbbbe..c2d2033a641d5930732554e118051f7eebf2770f 100644 (file)
@@ -739,7 +739,8 @@ appear on disk when you save the tar-file's buffer."
                (insert-buffer-substring tar-buffer start end)
                (goto-char 0)
                (setq buffer-file-name
-                     (expand-file-name (concat tarname ":" name)))
+                     ;; `:' is not allowed on Windows
+                     (expand-file-name (concat tarname "!" name)))
                (setq buffer-file-truename
                      (abbreviate-file-name buffer-file-name))
                ;; Set the default-directory to the dir of the