From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Thu, 20 Aug 2009 06:12:23 +0300 Message-ID: <83zl9vgovc.fsf@gnu.org> References: <87hbw35mar.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250738080 15455 80.91.229.12 (20 Aug 2009 03:14:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 03:14:40 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, joakim@verona.se, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 20 05:14:33 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mdy6j-0001Uu-6z for ged-emacs-devel@m.gmane.org; Thu, 20 Aug 2009 05:14:33 +0200 Original-Received: from localhost ([127.0.0.1]:47683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdy6i-0005uD-Ed for ged-emacs-devel@m.gmane.org; Wed, 19 Aug 2009 23:14:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mdy6d-0005sH-5A for emacs-devel@gnu.org; Wed, 19 Aug 2009 23:14:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mdy6b-0005s5-Au for emacs-devel@gnu.org; Wed, 19 Aug 2009 23:14:25 -0400 Original-Received: from [199.232.76.173] (port=60760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdy6b-0005s2-4y for emacs-devel@gnu.org; Wed, 19 Aug 2009 23:14:25 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:65063 helo=mtaout3.012.net.il) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mdy6a-0003Cu-OS for emacs-devel@gnu.org; Wed, 19 Aug 2009 23:14:25 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KON00300N6USP00@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Thu, 20 Aug 2009 06:14:22 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.180.85]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KON002UUNNYO960@i_mtaout3.012.net.il>; Thu, 20 Aug 2009 06:14:22 +0300 (IDT) In-reply-to: <87hbw35mar.fsf@uwakimon.sk.tsukuba.ac.jp> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114427 Archived-At: > From: "Stephen J. Turnbull" > Date: Thu, 20 Aug 2009 10:03:24 +0900 > Cc: Stefan Monnier , > Emacs Development > > joakim@verona.se 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.