From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: Re: non-interactive extracting the contents of a tar-file Date: 28 Jun 2005 10:42:11 +0200 Organization: "sd&m AG, Muenchen, Germany" Message-ID: References: <87d5q6c2w9.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119950546 28123 80.91.229.2 (28 Jun 2005 09:22:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 09:22:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 28 11:22:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnCHV-0004h4-8D for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2005 11:21:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DnCPJ-0007Px-P3 for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jun 2005 05:29:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!news.sdm.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: sachrang.muc.sdm.de Original-X-Trace: news.sdm.de 1119948131 2749 193.102.181.204 (28 Jun 2005 08:42:11 GMT) Original-X-Complaints-To: usenet@news.sdm.de Original-NNTP-Posting-Date: Tue, 28 Jun 2005 08:42:11 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:132217 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27692 On 28 Jun 2005, Tim X. wrote: > Klaus Berndl writes: > > > On Mon, 27 Jun 2005, Peter Dyballa wrote: > > > > > > Am 27.06.2005 um 12:23 schrieb Klaus Berndl: > > > > > > > Is it possible with tar-mode (or other already existing elisp-code), > > > > to extract the full contents of a tar-file to a certain directory (or > > > > at least to default-directory)? > > > > > > There is an easier work-around in Emacs shell: > > > > > > cd > > > tar xf > > > > Hmm, i forgot to mention that i want it do without external programs like > > tar and gz! > > > But doesn't emacs tar-mode just use tar 'under the hood'? No, untarring is done via elisp - see tar-mode.el > > It may be possible to work out how to extract files from a tar archive > reasonably easily, but the unzipping/decompressing is going to be > difficult/impossible. Also, keep in mind that as GNU tar also supports > bzip2 compression, we are likely to see archive.tar.bz2 as well as > archive.tar.gz more often. yes, good point! > > Why the need not to use the correct tools? Is it because of platforms > which may not have tar or tar and gunzip equivelants and if so, what > platforms? I had the wish to do it completely from within Emacs for my package so the user has no need for installing stuff like tar or gzip (especially in Windows-envs) - but the latter one is impossible, i see it now... Klaus > > Tim -- Klaus Berndl mailto: klaus.berndl@sdm.de sd&m AG http://www.sdm.de software design & management Carl-Wery-Str. 42, 81739 Muenchen, Germany Tel +49 89 63812-392, Fax -220