[Top][All Lists]

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

Re: using libmagic in Emacs?

From: Thien-Thi Nguyen
Subject: Re: using libmagic in Emacs?
Date: Tue, 25 Aug 2009 23:41:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

() Miles Bader <address@hidden>
() Tue, 25 Aug 2009 11:19:37 +0900

   If there was such elisp code, Emacs could use any magic rules
   file on the system, and in addition, could distribute it's own
   (perhaps smaller) set.

Some proof-of-concept grade Scheme code that (re)processes the
magic rules format into sexps, and also does the non-char-encoding
side of file(1) is at [0].  Converted rules (v1, v2) are at [1].

(Aside) I think the best candidate for libfoo integration with
Emacs would be libguile.  In contrast, when i read of other
libfoo proposals, i can't help but feel somewhat deflated.


[0] http://www.gnuvola.org/software/ttn-do/
    (see file magic.scm in the tarball)
[1] http://www.gnuvola.org/data/index.html
    (see entry "de-uglified magic file")

reply via email to

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