From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: Re: arc-lzh-exe.el -- archive-mode on lzh self-extracting exes Date: Mon, 23 Apr 2007 09:46:33 +1000 Message-ID: <87vefonfae.fsf@zip.com.au> References: <87zm5etm0r.fsf@zip.com.au> <87tzvitz4z.fsf@zip.com.au> <87mz1516p8.fsf@zip.com.au> <87odljq5l2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177285642 18201 80.91.229.12 (22 Apr 2007 23:47:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Apr 2007 23:47:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 01:47:20 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hflm2-000768-L0 for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 01:47:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HflrN-0003Qn-88 for ged-emacs-devel@m.gmane.org; Sun, 22 Apr 2007 19:52:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HflrK-0003Qc-PK for emacs-devel@gnu.org; Sun, 22 Apr 2007 19:52:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HflrJ-0003QQ-Dp for emacs-devel@gnu.org; Sun, 22 Apr 2007 19:52:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HflrJ-0003QN-9H for emacs-devel@gnu.org; Sun, 22 Apr 2007 19:52:45 -0400 Original-Received: from mailout1-8.pacific.net.au ([61.8.2.215] helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hfllx-0000vx-QV for emacs-devel@gnu.org; Sun, 22 Apr 2007 19:47:14 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 49C405A0CD9 for ; Mon, 23 Apr 2007 09:47:03 +1000 (EST) Original-Received: from localhost (ppp2893.dyn.pacific.net.au [61.8.40.147]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id ACB0827435 for ; Mon, 23 Apr 2007 09:47:02 +1000 (EST) Original-Received: from gg by localhost with local (Exim 4.63) (envelope-from ) id 1HfllJ-0001nO-5m for emacs-devel@gnu.org; Mon, 23 Apr 2007 09:46:33 +1000 In-Reply-To: (Richard Stallman's message of "Sat, 21 Apr 2007 14:25:10 -0400") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69819 Archived-At: Richard Stallman writes: > > 1. Detect them automatically (probably complex). The files have a nice marker early on, so the archive-exe-p I proposed is - only .exe filename - "MZ", which is a DOS exe - "LHA's SFX", as tested by the "file" command It'd be possible to add the search through the file looking for "-lh5-" which is the start of the archive part proper (per archive-lzh-exe-summarize), but I expect "LHA's SFX" is enough (it's in a spot which I think is normally either "reserved" or relocation table). Can my archive-exe-p func go in, even if it's not enabled, so that those who are confident about that test can customize it into the magic alist? > M-x archive-mode In which case could .exe or lzh .exe or whatever get a mention in files.texi, so that it's not a secret?