From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32221 Path: main.gmane.org!not-for-mail From: "John Cooper (UK)" Newsgroups: gmane.emacs.gnus.general Subject: Re: Mailcap problem specifying application/octet-stream Date: 16 Aug 2000 15:50:01 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87lmxyjvbd.fsf@delivery.cam.eu.citrix.com> <2nr97qtosr.fsf@tiger.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168526 18491 80.91.224.250 (21 Oct 2002 02:48:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:48:46 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 0690ED051E for ; Wed, 16 Aug 2000 09:52:14 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAC16094; Wed, 16 Aug 2000 08:52:07 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 16 Aug 2000 08:51:27 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id IAA15821 for ; Wed, 16 Aug 2000 08:51:17 -0500 (CDT) Original-Received: from gatekeeper.ctxuk.citrix.com (gatekeeper.ctxuk.citrix.com [195.153.38.114]) by mailhost.sclp.com (Postfix) with ESMTP id 8DB05D051E for ; Wed, 16 Aug 2000 09:51:31 -0400 (EDT) Original-Received: from sh.ctxuk.citrix.com (sh.ctxuk.citrix.com [10.30.224.4]) by gatekeeper.ctxuk.citrix.com (8.8.7/BSCF-1.7) with ESMTP id OAA23340 for ; Wed, 16 Aug 2000 14:51:21 +0100 (BST) Original-Received: from hwav01.ctxuk.citrix.com (hwav01.ctxuk.citrix.com [10.30.224.26]) by sh.ctxuk.citrix.com (8.8.7/BSCF-1.7) with SMTP id OAA02757 for ; Wed, 16 Aug 2000 14:51:17 +0100 (BST) Original-Received: from 10.30.224.101 by hwav01.ctxuk.citrix.com (InterScan E-Mail VirusWall NT); Wed, 16 Aug 2000 14:51:17 +0100 (GMT Daylight Time) Original-Received: by hwexch01.ctxuk.citrix.com with Internet Mail Service (5.5.2650.21) id ; Wed, 16 Aug 2000 14:51:17 +0100 Original-Received: from KONTIKI.cam.citrix.com (kontiki.cam.eu.citrix.com [10.70.128.78]) by hwexch01.ctxuk.citrix.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id QLGAJNXR; Wed, 16 Aug 2000 14:51:04 +0100 Original-To: ding@gnus.org, ShengHuo ZHU In-Reply-To: ShengHuo ZHU's message of "15 Aug 2000 13:30:28 -0400" Original-Lines: 26 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32221 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32221 ShengHuo ZHU writes: > Toby Speight writes: > > > Perhaps Lisp functions take precedence over shell commands in > > mm-mailcap-data? > > It's the truth. > > > Is that the case? If so, is there a way to override it? > > Remove the lisp function entry or redefine mailcap-viewer-lessp. Thanks for the clarification. The following (in my .gnus) removes the default application/octet-stream entry, thus allowing my .mailcap specification to take effect: (require 'mailcap) (let* ((application (assoc "application" mailcap-mime-data)) (octet-stream (assoc "octet-stream" application))) (when (symbolp (cdr (assoc 'viewer octet-stream))) (delete octet-stream application))) --- John