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: Sun, 30 Aug 2009 06:09:23 +0300 Message-ID: <83vdk69evw.fsf@gnu.org> References: <87ocqco7fi.fsf@mail.jurta.org> <87y6pb8lqh.fsf@mail.jurta.org> <87my5qngab.fsf@mail.jurta.org> <87eiquuq7j.fsf@mail.jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1251601786 27132 80.91.229.12 (30 Aug 2009 03:09:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2009 03:09:46 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 30 05:09:39 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 1MhanS-0004HU-Ln for ged-emacs-devel@m.gmane.org; Sun, 30 Aug 2009 05:09:39 +0200 Original-Received: from localhost ([127.0.0.1]:46177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhanR-0002sW-Rp for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2009 23:09:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhanL-0002p4-TP for emacs-devel@gnu.org; Sat, 29 Aug 2009 23:09:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhanJ-0002mL-O0 for emacs-devel@gnu.org; Sat, 29 Aug 2009 23:09:30 -0400 Original-Received: from [199.232.76.173] (port=43487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhanJ-0002m9-JE for emacs-devel@gnu.org; Sat, 29 Aug 2009 23:09:29 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:39386) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhanJ-0007H7-72 for emacs-devel@gnu.org; Sat, 29 Aug 2009 23:09:29 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10] helo=mtaout3.012.net.il) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhanI-000222-DP for emacs-devel@gnu.org; Sat, 29 Aug 2009 23:09:28 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KP600D005XFOT00@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Sun, 30 Aug 2009 06:09:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.144.38]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KP600E4063PRE50@i_mtaout3.012.net.il>; Sun, 30 Aug 2009 06:09:26 +0300 (IDT) In-reply-to: <87eiquuq7j.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il X-Detected-Operating-System: by mx20.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114866 Archived-At: > From: Juri Linkov > Date: Sun, 30 Aug 2009 02:19:12 +0300 > Cc: monnier@IRO.UMontreal.CA, joakim@verona.se, emacs-devel@gnu.org > > I agree that running `file' is a simpler solution. PLEASE do not base Emacs infrastructure on external programs, unless they come with Emacs. `file' is not available on every platform, and even on those it is, the quality and extent of its database is unclear and so cannot be relied upon. I really don't understand why linking against a simple free library is an issue, but if it is, we should find a different solution using some database internal to Emacs, as we did until now. In any case, invoking external programs without being smart about their non-existence is not something we should have in Emacs.