emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using libmagic in Emacs?


From: James Cloos
Subject: Re: using libmagic in Emacs?
Date: Tue, 25 Aug 2009 09:27:06 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

>>>>> "Miles" == Miles Bader <address@hidden> 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 <address@hidden>         OpenPGP: 1024D/ED7DAEA6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]