[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
magic.scm
From: |
Thien-Thi Nguyen |
Subject: |
magic.scm |
Date: |
Thu, 17 Apr 2008 02:32:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
A few months back there was some (light) discussion on emacs-devel
re incorporating file(1) functionality into Emacs proper. As a
warmup to magic.el, i wrote magic.scm, appended, to appear in the
next ttn-do release. It's not a replacement for file by any means
(still half-baked), but anyway seems to do ok given the handful of
file types tested against it.
Probably in a few days i will publish ~/.magic (derived from
/usr/share/file/magic with some syntax errors fixed) and the
"compiled magic file" ~/.magic.ttn-do-magic somewhere under
<http://www.gnuvola.org/data/> -- check there for updates.
In the code, there are a few "sigh"s where magic(5) and/or my brain
were not sufficient to rationalize file's actual/intended behavior
on certain inputs. Ah well, scanners live in vain...
thi
________________________________________
magic.scm
Description: Binary data
- magic.scm,
Thien-Thi Nguyen <=