[Top][All Lists]

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

Re: using libmagic in Emacs?

From: Stephen J. Turnbull
Subject: Re: using libmagic in Emacs?
Date: Fri, 21 Aug 2009 09:19:48 +0900

Eli Zaretskii writes:

 > Maybe so, but still "man file" shows this at the very first line:
 >        file - determine file type

Sure.  file does more than invoke libmagic, though, and in the Unix
context the ambiguous "type" is not so problematic; it is basically
defined by "what file(1) does."  For the broader audience, if "magic"
is unacceptable, they probably don't know what file(1) does.

 > But if this function will fall back on something else if libmagic is
 > not available, then I think this name is not a good one.

This function should be available in a form which only uses libmagic.
What other tests should be done should be done in LISP, and I see no
reason to hide the libmagic functionality in an "-internal" or
otherwise "not for regular use" form.

reply via email to

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