From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54148 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: Disable mailcap support Date: Thu, 02 Oct 2003 20:02:42 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: ding-owner@lists.math.uh.edu Message-ID: References: <20030928161139.GA31465@deneb.enyo.de> Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065118678 24770 80.91.224.253 (2 Oct 2003 18:17:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2003 18:17:58 +0000 (UTC) Original-X-From: ding-owner+M2689@lists.math.uh.edu Thu Oct 02 20:17:56 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A581U-0007lY-00 for ; Thu, 02 Oct 2003 20:17:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1A581N-00089h-00; Thu, 02 Oct 2003 13:17:49 -0500 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1A581I-00088o-00 for ding@lists.math.uh.edu; Thu, 02 Oct 2003 13:17:44 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 26EEE3A004C for ; Thu, 2 Oct 2003 13:17:43 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A581G-00041a-00 for ; Thu, 02 Oct 2003 20:17:42 +0200 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A581E-00041S-00 for ; Thu, 02 Oct 2003 20:17:40 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1A581E-0006Qn-00 for ; Thu, 02 Oct 2003 20:17:40 +0200 Original-Lines: 58 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:tRkIlWgwfqern08apXpA+FlOpOg= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54148 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54148 On Wed, Oct 01 2003, Jesper Harder wrote: > Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: >> I've been unable to find a simple way of removing the entire >> entries created by Gnus. > > (setq mailcap-mime-data nil) This also disables entries from the mailcap files... *oops* ... only if eval'ed after `mailcap-parsed-p' has been set to t already. >> Or suppose a user wants to display all kind of images (internally or >> externally), but always save dvi, ps, pdf, ... to a file. What should >> the user put in his mailcap files? [...] > (mailcap-add "application/pdf" 'mailcap-save-binary-file) [...] >> _Not_ having entries for dvi, ps, pdf should be enough. > > I think I agree. But I don't understand why there are external > viewers in `mailcap-mime-data' in the first place. It seems (from the ChangeLog entries for `mailcap-mime-data') that most entries are quite old. Does anyone remember why there are so many external entries? Maybe because the system mailcap files didn't contain anything useful. > If no one knows a good reason I think we should remove them (and use > defcustom). I.e. basically follow Dave Love's suggestion? | Postpone using defcustom for this as it's so big and we essentially | have to have two copies of the data around then. Perhaps just | customize the Lisp viewers and rely on the normal configuration | files for the rest? -- fx (Just a thought...) We could split the data as follows: - defcustom mailcap-mime-data-internal (Lisp, PGP, message/* and other internal stuff?) - defvar mailcap-mime-data-external (build this from mailcap files) - defvar mailcap-mime-data-external-fallback The default should be mailcap-mime-data = mailcap-mime-data-internal + mailcap-mime-data-external. The user should be able to add the fallback entries `mailcap-mime-data-external-fallback' with, say (mailcap-add-fallback). I'm not sure about the print stuff and "(test . (fboundp 'foo-mode))" and similar. `mailcap.el' is used by other packages too (w3, url, mh-e, vm, ...), so we should be extra careful. Bye, Reiner. P.S.: Beside `mailcap-mime-data', we also have `gnus-uu-default-view-rules', see the `X v ...' commands. :-/ -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/