[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: archive-mode gets confused if two archives have the same filename
From: |
Chris Moore |
Subject: |
Re: archive-mode gets confused if two archives have the same filename |
Date: |
Fri, 24 Feb 2006 04:30:32 +0100 |
That test case, involving 2 separate archives was overly involved.
The bug shows itself if you use a single archive:
1. make 2 directories:
$ mkdip -p /tmp/dir1/dir
2. make 2 files:
$ echo 111 > /tmp/dir1/file
$ echo 222 > /tmp/dir1/dir/file
3. make a zip file
$ cd /tmp/dir1; zip file.zip file dir/file
4. view the first file in the archive
C-x C-f /tmp/dir1/file.zip RET f
5. it's fine; view the 2nd file in the archive
C-x b RET n f
6. Emacs shows the first file ("111") not the 2nd file ("222")
This is on account of lisp/arc-mode.el constructing a buffer name like this:
(let * ... (bufname (concat (file-name-nondirectory iname) " ("
arcname ")")) ...))
without stopping to worry that neither the file-name-nondirectory nor
the arcname are necessarily unique.
Chris,