From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers <kevin.d.rodgers@gmail.com> Newsgroups: gmane.emacs.help Subject: Re: Trouble getting archives to load as archives Date: Tue, 08 Jul 2008 01:00:34 -0600 Message-ID: <g4v3aa$p0q$1@ger.gmane.org> References: <f1ce82e6-59be-4302-888e-c4e7a74cf9ff@f63g2000hsf.googlegroups.com> <mailman.14225.1215208751.18990.help-gnu-emacs@gnu.org> <c07682cb-df1a-4654-96e5-96b61ecc3460@e53g2000hsa.googlegroups.com> <486EDB25.5060204@pobox.com> <8d7d1e6d0807041957n679449f4l71a08f5394f749a3@mail.gmail.com> <701B5C5C-6B24-42CC-B6B5-82403CC52927@Web.DE> <8d7d1e6d0807060121o25328808s3f85ef1761742d50@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215500488 25865 80.91.229.12 (8 Jul 2008 07:01:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 07:01:28 +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 08 09:02:09 2008 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org> 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.50) id 1KG7D6-0000JR-Nf for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 09:02:00 +0200 Original-Received: from localhost ([127.0.0.1]:34427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG7CF-0004DI-C1 for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 03:01:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KG7Bu-0004DC-L6 for help-gnu-emacs@gnu.org; Tue, 08 Jul 2008 03:00:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KG7Bt-0004D0-1m for help-gnu-emacs@gnu.org; Tue, 08 Jul 2008 03:00:45 -0400 Original-Received: from [199.232.76.173] (port=37420 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG7Bs-0004Cx-Qt for help-gnu-emacs@gnu.org; Tue, 08 Jul 2008 03:00:44 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:38830) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from <geh-help-gnu-emacs@m.gmane.org>) id 1KG7Bs-0001dA-Br for help-gnu-emacs@gnu.org; Tue, 08 Jul 2008 03:00:44 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from <geh-help-gnu-emacs@m.gmane.org>) id 1KG7Bq-0000oB-Tn for help-gnu-emacs@gnu.org; Tue, 08 Jul 2008 03:00:43 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KG7Bi-0000Cn-4K for help-gnu-emacs@gnu.org; Tue, 08 Jul 2008 07:00:34 +0000 Original-Received: from c-67-190-29-163.hsd1.co.comcast.net ([67.190.29.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <help-gnu-emacs@gnu.org>; Tue, 08 Jul 2008 07:00:34 +0000 Original-Received: from kevin.d.rodgers by c-67-190-29-163.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <help-gnu-emacs@gnu.org>; Tue, 08 Jul 2008 07:00:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 60 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-190-29-163.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) In-Reply-To: <8d7d1e6d0807060121o25328808s3f85ef1761742d50@mail.gmail.com> X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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 <help-gnu-emacs.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=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:55302 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/55302> Davin Pearson wrote: > 2008/7/5 Peter Dyballa <Peter_Dyballa@web.de>: >> How does it work when you invoke GNU Emacs as 'emacs -Q' or 'emacs -q' ? >> With -Q neither the system's nor your own customisation is loaded, with -q >> your's not loaded. In either both or in one case GNU Emacs should behave >> correctly ... > > With -q and -Q and the following: > > (add-to-list 'auto-mode-alist > '("\\.\\(arc\\|zip\\|tar\\|gz\\|lzh\\|zoo\\)\\'" . archive-mode)) > > Then loading a *.tar or *.gz file generates the following error messages: > > File mode specification error: (error "Buffer format not recognized") [3 times] That's because archive-mode does not support .tar or .gz files. From arc-mode.el (Emacs 22.2): ;; ARCHIVE TYPES: Currently only the archives below are handled, but the ;; structure for handling just about anything is in place. ;; ;; Arc Lzh Zip Zoo ;; -------------------------------- ;; View listing Intern Intern Intern Intern ;; Extract member Y Y Y Y ;; Save changed member Y Y Y Y ;; Add new member N N N N ;; Delete member Y Y Y Y ;; Rename member Y Y N N ;; Chmod - Y Y - ;; Chown - Y - - ;; Chgrp - Y - - ... (defun archive-find-type () (widen) (goto-char (point-min)) ;; The funny [] here make it unlikely that the .elc file will be treated ;; as an archive by other software. (let (case-fold-search) (cond ((looking-at "[P]K\003\004") 'zip) ((looking-at "..-l[hz][0-9ds]-") 'lzh) ((looking-at "....................[\334]\247\304\375") 'zoo) ((and (looking-at "\C-z") ; signature too simple, IMHO (string-match "\\.[aA][rR][cC]$" (or buffer-file-name (buffer-name)))) 'arc) ;; This pattern modelled on the BSD/GNU+Linux `file' command. ;; Have seen capital "LHA's", and file has lower case "LHa's" too. ;; Note this regexp is also in archive-exe-p. ((looking-at "MZ\\(.\\|\n\\)\\{34\\}LH[aA]'s SFX ") 'lzh-exe) (t (error "Buffer format not recognized"))))) -- Kevin Rodgers Denver, Colorado, USA