From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61764 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: /etc/mailcap test specs Date: Wed, 25 Jan 2006 13:57:34 +0900 Organization: Emacsen advocacy group Message-ID: References: <87d5ihw2b0.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138165378 9960 80.91.229.2 (25 Jan 2006 05:02:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2006 05:02:58 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m10293@lists.math.uh.edu Wed Jan 25 06:02:57 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1cny-0005he-V1 for ding-account@gmane.org; Wed, 25 Jan 2006 06:02:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1F1cni-0004tu-00; Tue, 24 Jan 2006 23:02:34 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F1cj7-0004tp-00 for ding@lists.math.uh.edu; Tue, 24 Jan 2006 22:57:49 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1F1cj5-000863-TZ for ding@lists.math.uh.edu; Tue, 24 Jan 2006 22:57:49 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F1cj4-0004Ai-00 for ; Wed, 25 Jan 2006 05:57:46 +0100 Original-Received: from [205.234.185.198] (port=42677 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1F1coZ-0001jy-Fu; Tue, 24 Jan 2006 23:03:27 -0600 Original-To: Kevin Ryde X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:pPZ2tG/fFGkcNgJZRQA9wMmmZ7Y= X-Hashcash: 1:20:060125:user42@zip.com.au::fLn7sn7FEd0QTBkw:00000000000000000000000000000000000000000000Bk2K X-Hashcash: 1:20:060125:ding@gnus.org::KG7AvvUmwYos9154:00005Pej X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61764 Archived-At: >>>>> In <87d5ihw2b0.fsf@zip.com.au> Kevin Ryde wrote: > I think the "test" specs parsed from /etc/mailcap are not being tried. > On a tty with DISPLAY unset I find gnus trying to run xpdf (or > acroread), despite having > test=test -n "$DISPLAY" > I think the info alists in mailcap-mime-data are getting strings > "test" rather than symbols `test', which is making those tests invisible > to mailcap-viewer-passes-test and mailcap-mailcap-entry-passes-test > (those funcs call "(assq 'test info)"). > 2006-01-21 Kevin Ryde > * mailcap.el (mailcap-parse-mailcap-extras): "test" key must go into > alists as symbol not string, since that's what > mailcap-viewer-passes-test and mailcap-mailcap-entry-passes-test look > for. > I'd have thought symbols for all keys would be the way to go, but I > see "copiousoutput", "needsx11" and friends are getting tested/used as > strings at the moment. Thank you for the patch. I've applied it to the trunk and the v5-10 branch.