From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Thu, 03 Sep 2009 15:42:15 -0400 Message-ID: References: <87ocqco7fi.fsf@mail.jurta.org> <87y6pb8lqh.fsf@mail.jurta.org> <87my5qngab.fsf@mail.jurta.org> <87eiquuq7j.fsf@mail.jurta.org> <83vdk69evw.fsf@gnu.org> <874orp58fp.fsf@mail.jurta.org> <83ljl0ae9j.fsf@gnu.org> <877hwk3ryv.fsf@mail.jurta.org> <83d46bamqp.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252007058 28094 80.91.229.12 (3 Sep 2009 19:44:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2009 19:44:18 +0000 (UTC) Cc: juri@jurta.org, eliz@gnu.org, joakim@verona.se, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 03 21:44:11 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 1MjIE5-0000pM-Nt for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2009 21:44:10 +0200 Original-Received: from localhost ([127.0.0.1]:44032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjIE5-000490-93 for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2009 15:44:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjICP-00038p-OJ for emacs-devel@gnu.org; Thu, 03 Sep 2009 15:42:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjICL-00034q-Fa for emacs-devel@gnu.org; Thu, 03 Sep 2009 15:42:25 -0400 Original-Received: from [199.232.76.173] (port=36770 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjICK-00034a-PX for emacs-devel@gnu.org; Thu, 03 Sep 2009 15:42:20 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:39545) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjICH-0000Y6-VA; Thu, 03 Sep 2009 15:42:18 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n83JgFBA018385; Thu, 3 Sep 2009 15:42:15 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 8B1333A185; Thu, 3 Sep 2009 15:42:15 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue, 01 Sep 2009 17:20:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3355=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:115011 Archived-At: >> You're right; but the point is that this is used in very specific >> features, not in something general and basic such as find-file. > My intended use of libmagic is as a sidekick to magic-mode-alist, so > very much used by find-file. > Depending on libmagic is too much price to pay for saving a small > amount of work. It's better to do the small amount of work needed to > recognize the few file types we want to recognize, using the existing > mechanisms. I'd rather let other people do this work. That's why libmagic makes a lot of sense. Stefan