From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: using libmagic in Emacs? Date: Thu, 20 Aug 2009 22:27:50 +0200 Message-ID: <878whemdrt.fsf@marauder.physik.uni-ulm.de> References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250800116 1929 80.91.229.12 (20 Aug 2009 20:28:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 20:28:36 +0000 (UTC) Cc: monnier@iro.umontreal.ca, joakim@verona.se, emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 20 22:28:26 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 1MeEFC-0002W6-UP for ged-emacs-devel@m.gmane.org; Thu, 20 Aug 2009 22:28:23 +0200 Original-Received: from localhost ([127.0.0.1]:41003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEFC-0002NU-Dw for ged-emacs-devel@m.gmane.org; Thu, 20 Aug 2009 16:28:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeEEy-0002Hh-Ey for emacs-devel@gnu.org; Thu, 20 Aug 2009 16:28:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeEEt-0002DD-V7 for emacs-devel@gnu.org; Thu, 20 Aug 2009 16:28:08 -0400 Original-Received: from [199.232.76.173] (port=48132 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEEt-0002DA-T0 for emacs-devel@gnu.org; Thu, 20 Aug 2009 16:28:03 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:52229) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeEEo-0001n7-CP; Thu, 20 Aug 2009 16:27:58 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n7KKRq8G015349; Thu, 20 Aug 2009 22:27:53 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id A89B9139E0; Thu, 20 Aug 2009 22:27:52 +0200 (CEST) X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l; 3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2; n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3, joakim@verona.se, monnier@iro.umontreal.ca, emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 20 Aug 2009 14:32:17 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=4 Fuz1=4 Fuz2=4 X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:114463 Archived-At: On Thu, Aug 20 2009, Richard Stallman wrote: > If we go this route, we should not load gnus/mailcap.el. (mailcap.el doesn't load anything else, AFAICS.) > It contains lots of other stuff. Ironically last year some stuff from dired-aux.el was moved to mailcap.el and is used in `minibuffer-default-add-shell-commands' from simple.el. > So we ought to separate out and preload the right part of it, such > as the variable `mailcap-mime-data'. The initial value of `mailcap-mime-data' is a fall-back (for systems without proper mailcap files). To make it useful, probably `mailcap-parse-mailcaps' and related functions are necessary: $ emacs-23-1 -Q -f ielm -l mailcap ... ELISP> (with-temp-buffer (insert (pp-to-string mailcap-mime-data)) (point-max)) 4993 ELISP> (mailcap-parse-mailcaps) t ELISP> (with-temp-buffer (insert (pp-to-string mailcap-mime-data)) (point-max)) 40322 ELISP> system-type gnu/linux Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/