From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Mon, 31 Aug 2009 19:17:52 +0300 Organization: JURTA Message-ID: <877hwk3ryv.fsf@mail.jurta.org> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251737095 29292 80.91.229.12 (31 Aug 2009 16:44:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Aug 2009 16:44:55 +0000 (UTC) Cc: joakim@verona.se, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 31 18:44:48 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 1Mi9zr-0002u0-Uz for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 18:44:48 +0200 Original-Received: from localhost ([127.0.0.1]:56294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi9zr-0004Zu-6n for ged-emacs-devel@m.gmane.org; Mon, 31 Aug 2009 12:44:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi9x1-00031t-Uv for emacs-devel@gnu.org; Mon, 31 Aug 2009 12:41:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi9wx-0002yD-EO for emacs-devel@gnu.org; Mon, 31 Aug 2009 12:41:51 -0400 Original-Received: from [199.232.76.173] (port=35232 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi9wx-0002y3-8P for emacs-devel@gnu.org; Mon, 31 Aug 2009 12:41:47 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:50373 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mi9wt-00017W-0w; Mon, 31 Aug 2009 12:41:43 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.53.175.cable.starman.ee [82.131.53.175]) by mx2.starman.ee (Postfix) with ESMTP id 28EC03F4280; Mon, 31 Aug 2009 19:23:30 +0300 (EEST) In-Reply-To: <83ljl0ae9j.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 31 Aug 2009 05:49:44 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) 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:114909 Archived-At: >> > PLEASE do not base Emacs infrastructure on external programs, unless >> > they come with Emacs. >> >> There are many features in Emacs that depend on external programs, >> e.g. `ls' for dired, `find' and `grep', `man', `ispell', `shell', >> `gdb', `diff', VCS tools, etc. > > I said infrastructure, not features. Of those you mentioned only `ls' > is used in infrastructure, and that's precisely why we had to write > ls-lisp.el. `mailcap-file-default-commands' is not infrastructure. It's one small feature. >> My patch fails gracefully when `file' is not available, I tried >> removing `file' without any problem. The function just returns nil. > > And that is graceful how? When it returns nil, then default commands are the same as provided by mailcap for plain text files, i.e. `less', `konqueror', etc. -- Juri Linkov http://www.jurta.org/emacs/