From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Tue, 25 Aug 2009 09:27:06 -0400 Message-ID: References: <87ocqco7fi.fsf@mail.jurta.org> <87y6pb8lqh.fsf@mail.jurta.org> <87my5qngab.fsf@mail.jurta.org> <87r5v0prd2.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251207447 17843 80.91.229.12 (25 Aug 2009 13:37:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2009 13:37:27 +0000 (UTC) Cc: Juri Linkov , monnier@IRO.UMontreal.CA, rms@gnu.org, joakim@verona.se, Miles Bader To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 25 15:37:19 2009 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 1MfwD8-0002fF-Fd for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 15:37:18 +0200 Original-Received: from localhost ([127.0.0.1]:46808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfwD6-00007M-UL for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2009 09:37:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfwC3-0007W0-Pc for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:36:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfwBz-0007Q1-UR for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:36:11 -0400 Original-Received: from [199.232.76.173] (port=48240 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfwBz-0007Pe-JX for emacs-devel@gnu.org; Tue, 25 Aug 2009 09:36:07 -0400 Original-Received: from eagle.jhcloos.com ([207.210.242.212]:1564) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfwBs-0003VU-UU; Tue, 25 Aug 2009 09:36:01 -0400 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id E418D401A3; Tue, 25 Aug 2009 13:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1251207355; bh=mXyuvadtv+LrTpIQPZKEQ4UmC//1pkibtfyfBPDP+vs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=yatlEnD/b2lIUxnZDI9yv+rMTEw94Q1pmkbISj9EcGE5QkKuecdrqW5Fi5bo9RdYw hJHxPwUfatEXmBdoW3WPVjDfcF6jeWPAOjITXBnce9V3ljcJy0MhhHLubBhWq4ACqx 5AgeS5ykwhiufdB6nc82PrOFo77BYQPIy9Q2bPWA= Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id BA78F66B4A; Tue, 25 Aug 2009 13:27:32 +0000 (UTC) In-Reply-To: <87r5v0prd2.fsf@catnip.gol.com> (Miles Bader's message of "Tue, 25 Aug 2009 11:19:37 +0900") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2009 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:114583 Archived-At: >>>>> "Miles" == Miles Bader writes: Miles> I wonder how hard it would be to have some elisp that understands Miles> the "magic" rules that the file command uses... It shouldn't be too hard, but note that the current versions of file do not install the text-format magic file, but rather a compiled .mgc file instead. The format of the text file is documented in the magic(4) man page. (Which ought to be in section 5....) I don't see any documentation of the .mgc files, but there may be in the src. -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6