From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Tue, 01 Sep 2009 17:20:34 -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> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1251841087 7328 80.91.229.12 (1 Sep 2009 21:38:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2009 21:38:07 +0000 (UTC) Cc: juri@jurta.org, eliz@gnu.org, joakim@verona.se, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 23:37:59 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 1Mib37-0001Ti-IU for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 23:37:57 +0200 Original-Received: from localhost ([127.0.0.1]:47826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mib36-0004eb-Rm for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2009 17:37:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mib2v-0004aJ-3N for emacs-devel@gnu.org; Tue, 01 Sep 2009 17:37:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mib2q-0004Z1-I2 for emacs-devel@gnu.org; Tue, 01 Sep 2009 17:37:44 -0400 Original-Received: from [199.232.76.173] (port=52212 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mib2q-0004Yy-CM for emacs-devel@gnu.org; Tue, 01 Sep 2009 17:37:40 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:36733) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mib2p-0004JY-Py for emacs-devel@gnu.org; Tue, 01 Sep 2009 17:37:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MiamI-0006hg-Qb; Tue, 01 Sep 2009 17:20:34 -0400 In-reply-to: (message from Stefan Monnier on Tue, 01 Sep 2009 12:12:13 -0400) 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:114957 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.