emacs-devel
[Top][All Lists]
Advanced

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

Re: using libmagic in Emacs?


From: Eli Zaretskii
Subject: Re: using libmagic in Emacs?
Date: Thu, 20 Aug 2009 06:12:23 +0300

> From: "Stephen J. Turnbull" <address@hidden>
> Date: Thu, 20 Aug 2009 10:03:24 +0900
> Cc: Stefan Monnier <address@hidden>,
>       Emacs Development <address@hidden>
> 
> address@hidden writes:
> 
>  > - We can probably have much fun debating what the interface should look
>  >   like at the lisp level. Any ideas? 
> 
> I think the main interface should be just "file-magic", even if it's
> not in file.el.  It's analogous to "file-attributes", etc.

Actually, I think the interface should be `file-type' or some such.
Like `file-attributes' that is a wrapper for `stat', the API name
should have a good semantic value, instead of just inheriting the name
of the low-level C functions it uses to do the job.




reply via email to

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