all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [christopher.ian.moore@gmail.com: archive-mode gets confused if two archives have the same filename]
@ 2006-03-06  0:50 Richard Stallman
  2006-03-08  1:58 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2006-03-06  0:50 UTC (permalink / raw)


I think the only way to fix this is to make the buffer-file-name of
the archive member files include info on the directory that the
archive is in.

Can someone please fix this and ack?

------- Start of forwarded message -------
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
	b=jj7E1qlvYET5Q04xNtv6SXlLzky7+9MQfZJd1IwuoFoRs1jROTFXmhF3i6FhGbQhuQBbnQIUA9JtppCYJbj/Z3eIHsOzm0DVNrJV3VfLvxwCy6iKZo8L9Gyx9zdvivwha/VdNUVAIrOODBhMslLTs7jWN7Hkun2/nGkJ1R65ICY=
Date: Fri, 24 Feb 2006 04:03:31 +0100
From: "Chris Moore" <christopher.ian.moore@gmail.com>
To: emacs-pretest-bug@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Subject: archive-mode gets confused if two archives have the same filename

Here are steps to reproduce a bug where Emacs shows a file from a
different archive than the one I requested:

1. make 2 directories:

  $ mkdir /tmp/dir1 /tmp/dir2

2. in each directory make a file "file.txt", each with different content

  $ echo 111 > /tmp/dir1/file.txt
  $ echo 222 > /tmp/dir2/file.txt

3. in each directory make a .zip or file containing the local file.txt

  $ cd /tmp/dir1; zip file.zip file.txt
  $ cd /tmp/dir2; zip file.zip file.txt

4. visit the first archive in Emacs and view file.txt inside it:

  C-x C-f /tmp/dir1/file.zip RET f

5. this shows a buffer containing "111" as expected, but then:

  C-x C-f /tmp/dir2/file.zip RET f

6. this shows the same buffer containing "111", when I expected to see
a new buffer containing "222".

The same bug happens if you use jar instead of zip.  And I'm guess the
same also happens with .arc, .lzh and .zoo files, whatever they might
be.

Chris.


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [christopher.ian.moore@gmail.com: archive-mode gets confused if two archives have the same filename]
  2006-03-06  0:50 [christopher.ian.moore@gmail.com: archive-mode gets confused if two archives have the same filename] Richard Stallman
@ 2006-03-08  1:58 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2006-03-08  1:58 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> I think the only way to fix this is to make the buffer-file-name of
> the archive member files include info on the directory that the
> archive is in.
>
> Can someone please fix this and ack?

Done.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-08  1:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-06  0:50 [christopher.ian.moore@gmail.com: archive-mode gets confused if two archives have the same filename] Richard Stallman
2006-03-08  1:58 ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.