* visiting large zip file
@ 2003-02-01 0:38 Kin Cho
2003-02-01 19:09 ` Benjamin Riefenstahl
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Kin Cho @ 2003-02-01 0:38 UTC (permalink / raw)
Hi,
Visiting a large zip file to list the contents of the zip file
doesn't work if the zip file size exceeds the emacs buffer size
limit.
Obviously this is not the way it should work since the zip file
content doesn't need to be read into the buffer.
Is there a fix for this?
-kin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visiting large zip file
2003-02-01 0:38 visiting large zip file Kin Cho
@ 2003-02-01 19:09 ` Benjamin Riefenstahl
2003-02-01 21:17 ` Eli Zaretskii
[not found] ` <mailman.1306.1044134470.21513.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 6+ messages in thread
From: Benjamin Riefenstahl @ 2003-02-01 19:09 UTC (permalink / raw)
Hi Kin,
Kin Cho <kin@neoscale.com> writes:
> Visiting a large zip file to list the contents of the zip file
> doesn't work if the zip file size exceeds the emacs buffer size
> limit.
>
> Obviously this is not the way it should work since the zip file
> content doesn't need to be read into the buffer.
In my setup the variable auto-mode-alist says that ZIP files are
handled by archive-mode. This is defined in arc-mode.el. Right at
the top of that file is a table that indicates that viewing is an
*internal* operation for all archive file types. So Emacs does
actually need to read the file to interpret it.
I haven't found a way to use external tools instead in arc-mode.el.
Sorry, benny
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visiting large zip file
2003-02-01 0:38 visiting large zip file Kin Cho
2003-02-01 19:09 ` Benjamin Riefenstahl
@ 2003-02-01 21:17 ` Eli Zaretskii
[not found] ` <mailman.1306.1044134470.21513.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2003-02-01 21:17 UTC (permalink / raw)
> From: Kin Cho <kin@neoscale.com>
> Newsgroups: gnu.emacs.help
> Date: 31 Jan 2003 16:38:44 -0800
>
> Visiting a large zip file to list the contents of the zip file
> doesn't work if the zip file size exceeds the emacs buffer size
> limit.
>
> Obviously this is not the way it should work since the zip file
> content doesn't need to be read into the buffer.
Actually, the Emacs mode that supports operations on *.zip files
_does_ read the whole zip file into a buffer; hence the problem.
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.1306.1044134470.21513.help-gnu-emacs@gnu.org>]
* Re: visiting large zip file
[not found] ` <mailman.1306.1044134470.21513.help-gnu-emacs@gnu.org>
@ 2003-02-03 15:59 ` Stefan Monnier <foo@acm.com>
2003-02-04 8:23 ` Eli Zaretskii
2003-02-07 2:36 ` Bijan Soleymani
0 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2003-02-03 15:59 UTC (permalink / raw)
>> Obviously this is not the way it should work since the zip file
>> content doesn't need to be read into the buffer.
> Actually, the Emacs mode that supports operations on *.zip files
> _does_ read the whole zip file into a buffer; hence the problem.
But I think Kin's point still holds: Emacs does not *need* to read
the file, since it uses external tools to extract/list/...
Contrary to tar-mode, for example.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visiting large zip file
2003-02-03 15:59 ` Stefan Monnier <foo@acm.com>
@ 2003-02-04 8:23 ` Eli Zaretskii
2003-02-07 2:36 ` Bijan Soleymani
1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2003-02-04 8:23 UTC (permalink / raw)
On 3 Feb 2003, Stefan Monnier <foo@acm.com> wrote:
> > Actually, the Emacs mode that supports operations on *.zip files
> > _does_ read the whole zip file into a buffer; hence the problem.
>
> But I think Kin's point still holds: Emacs does not *need* to read
> the file, since it uses external tools to extract/list/...
I'm guessing that whoever wrote arc-mode tried to avoid external tools as
much as they could, since some of the wide-spread tools are not free
software, and the free ones might not be installed. Also, IIRC arc-mode
allows you to edit the file's attributes in ways that might be
impossible with external tools.
Anyway, if someone wants to rewrite those parts of arc-mode to use
external tools, or perhaps fall back on that if the file's size is too
large for Emacs, I'm sure that would be a welcome addition.
> Contrary to tar-mode, for example.
tar-mode _could_ do the same (i.e. use the external `tar' program).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: visiting large zip file
2003-02-03 15:59 ` Stefan Monnier <foo@acm.com>
2003-02-04 8:23 ` Eli Zaretskii
@ 2003-02-07 2:36 ` Bijan Soleymani
1 sibling, 0 replies; 6+ messages in thread
From: Bijan Soleymani @ 2003-02-07 2:36 UTC (permalink / raw)
"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:
> >> Obviously this is not the way it should work since the zip file
> >> content doesn't need to be read into the buffer.
> > Actually, the Emacs mode that supports operations on *.zip files
> > _does_ read the whole zip file into a buffer; hence the problem.
>
> But I think Kin's point still holds: Emacs does not *need* to read
> the file, since it uses external tools to extract/list/...
> Contrary to tar-mode, for example.
>
>
> Stefan
Technically it doesn't. Emacs simply opens the file to determine the
contents by itself. If it didn't do this it would have to deal with
the different switches used by various "unzip" programs out there to
list the contents of an archive (not to mention having to reformat the
output of such a listing). Wouldn't be so hard but might cause
problems if people use nonstandard tools.
Bijan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-02-07 2:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-01 0:38 visiting large zip file Kin Cho
2003-02-01 19:09 ` Benjamin Riefenstahl
2003-02-01 21:17 ` Eli Zaretskii
[not found] ` <mailman.1306.1044134470.21513.help-gnu-emacs@gnu.org>
2003-02-03 15:59 ` Stefan Monnier <foo@acm.com>
2003-02-04 8:23 ` Eli Zaretskii
2003-02-07 2:36 ` Bijan Soleymani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).