From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Sat, 22 Aug 2009 14:03:42 +0900 Message-ID: <87d46o4ez5.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87hbw35mar.fsf@uwakimon.sk.tsukuba.ac.jp> <83zl9vgovc.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 1250916859 10896 80.91.229.12 (22 Aug 2009 04:54:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 04:54:19 +0000 (UTC) Cc: Eli Zaretskii , rms@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 Sat Aug 22 06:54: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 1MeicE-0006JR-UE for ged-emacs-devel@m.gmane.org; Sat, 22 Aug 2009 06:54:11 +0200 Original-Received: from localhost ([127.0.0.1]:59235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeicE-0002qT-4o for ged-emacs-devel@m.gmane.org; Sat, 22 Aug 2009 00:54:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeicA-0002qK-2T for emacs-devel@gnu.org; Sat, 22 Aug 2009 00:54:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Meic5-0002q0-Fu for emacs-devel@gnu.org; Sat, 22 Aug 2009 00:54:05 -0400 Original-Received: from [199.232.76.173] (port=50451 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Meic5-0002pq-CW for emacs-devel@gnu.org; Sat, 22 Aug 2009 00:54:01 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:51785) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Meic1-0003zZ-F3; Sat, 22 Aug 2009 00:53:57 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 9400C1535AE; Sat, 22 Aug 2009 13:53:55 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id B6E681A25CB; Sat, 22 Aug 2009 14:03:42 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta29) "garbanzo" 891381effa11+ XEmacs Lucid (x86_64-unknown-linux) 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:114504 Archived-At: Stefan Monnier writes: > We need two functions: > - one implemented in C which provides the info from libmagic, no more no less. +1 > So yes, the second one can be called `file-mime-type', but the first > would better be called `file-magic' or somesuch. Eli doesn't like that, and he's convinced me. `file-type-by-magic' or some such, I think. Even if the reader hasn't had the benefit of a classical education, they will have some idea of what's going on.