From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: odt file instant open Date: Tue, 27 Jul 2010 09:30:32 +0200 Message-ID: <4C4E8B18.9080005@easy-emacs.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280215631 922 80.91.229.12 (27 Jul 2010 07:27:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 07:27:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 09:27:10 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OdeZA-0008Q6-QP for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 09:27:09 +0200 Original-Received: from localhost ([127.0.0.1]:37821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdeZA-0006Nk-1D for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 03:27:08 -0400 Original-Received: from [140.186.70.92] (port=43354 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdeYH-0006NB-7B for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 03:26:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdeYF-0000RA-Uk for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 03:26:13 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.10]:60505) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdeYF-0000Qv-JG for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 03:26:11 -0400 Original-Received: from [192.168.178.27] (p5DDB0A98.dip0.t-ipconnect.de [93.219.10.152]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lx5o1-1P6VD62249-016Rnl; Tue, 27 Jul 2010 09:26:09 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: X-Provags-ID: V02:K0:cDdebJnn4Wv3Jm7jR0EfaayAQnAbWwlLvAvuMgRww7A 19ojMSAMa02rF/pQ5zZI3MBqUl/y9EppFxUDJe6NBuSYnkJYsm tKOuVJdos1lkOvGhr8PHqQrrBZsngUia7gtFXI+S2gJzSmpaER IvZ045e0cCgyd0pnjz+t0oskqqvLnAX5b0E1PTPpAsCFnCoVZY wH0+eTRB+YIQqmEIQpgNkP9JStdBekAjHZ8X3stUL4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:74301 Archived-At: Am 26.07.2010 18:29, schrieb Olwe Melwasul: > I'm trying to grok the open document format, so I took the first wild > and crazy step of simply trying to open it in Emacs (23.2.1) -- and it > opened up to a "Zip-Archive Narrow" view of all the files contained > therein Poking around on the Internet, I found that Emacs > automatically unpacks a .odt file, which is nothing more than a zip > file. My question is this: How is Emacs doing this? by calling a shell-command resp. to the ending found. Exists a list with endings --.zip, .tgz, .gz etc.-- and programs to run for. Have a look at dired-do-compress for the details. What code is > running (what .el is invoked) probably dired-find-file HTH Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/ to make this happen? Also, where might > documentation be on how to control this zip/unzip functionality with > elisp. I don't want to do a system call, i.e., reinvent the wheel. > > O > >