From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85563 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Recent Emacs doesn't respect my mailcap Date: Tue, 27 Jan 2015 13:08:46 +0800 Message-ID: <87lhkoq081.fsf@ericabrahamsen.net> References: <87386xf5gx.fsf@building.gnus.org> <87386xdmzp.fsf@building.gnus.org> <87h9vdc7cn.fsf@building.gnus.org> <87egqhrmzv.fsf@gmx.us> <87a915c5an.fsf@building.gnus.org> <87ppa1rkp7.fsf@ericabrahamsen.net> <87386xc4fh.fsf@building.gnus.org> <87fvawri03.fsf@ericabrahamsen.net> <878ugobzjs.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422334968 3112 80.91.229.3 (27 Jan 2015 05:02:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 05:02:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33803@lists.math.uh.edu Tue Jan 27 06:02:44 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFyIV-0007n2-FI for ding-account@gmane.org; Tue, 27 Jan 2015 06:02:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1YFyIO-0000zS-Dq; Mon, 26 Jan 2015 23:02:36 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YFyIN-0000zH-8K for ding@lists.math.uh.edu; Mon, 26 Jan 2015 23:02:35 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YFyIJ-0002Lq-7S for ding@lists.math.uh.edu; Mon, 26 Jan 2015 23:02:35 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YFyIH-0004GG-Q0 for ding@gnus.org; Tue, 27 Jan 2015 06:02:29 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YFyIB-0007S0-GY for ding@gnus.org; Tue, 27 Jan 2015 06:02:25 +0100 Original-Received: from 221.218.165.215 ([221.218.165.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2015 06:02:23 +0100 Original-Received: from eric by 221.218.165.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jan 2015 06:02:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.218.165.215 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:MLcmOJeMWkId/P+3JGnRR4gR7HQ= X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin (3.4.0 2014-02-07) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-46--2752h-0s--0d--bug, 0.000-18--1041h-0s--0d--existed, 0.000-16--914h-0s--0d--config, 0.000-6--329h-0s--0d--desktop, 0.000-5--291h-0s--0d--configuration Spam tokens: 0.994-1627--57h-846s--0d--HTo:D*gnus.org, 0.993-1691--72h-886s--0d--H*RU:quimby.gnus.org, 0.993-1691--72h-886s--0d--Hx-spam-relays-external:quimby.gnus.org, 0.992-1686--77h-886s--0d--H*RT:quimby.gnus.org, 0.992-1686--77h-886s--0d--H*RT:80.91.231.51 Autolearn status: no autolearn_force=no -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.91.229.3 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 No description available. List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85563 Archived-At: Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> Lars Ingebrigtsen writes: >> >>> Eric Abrahamsen writes: >>> >>>> In my use case, I've already told Gnus to view the PDF externally by >>>> using `gnus-article-view-part-externally'. Given that, and the fact that >>>> I've specified an external viewer in ~/.mailcap, it seems a little >>>> perverse that I'm still stuck seeing it in Doc View. If I wanted to do >>>> that, I could have just called `gnus-article-view-part'! >>> >>> That does sound like a bug. Perhaps that command should filter out all >>> Lisp functions from `mailcap-mime-data'? >> >> Or put ~/.mailcap stuff at the front of the list, or maybe just don't >> re-sort mailcap-mime-data. I don't think anything fancy needs to be done >> -- it should be enough just to *not* mess with mailcap-mime-data. > > The `-externally' command should work different from the other command, > shouldn't it? Otherwise, what's the point of having two of these > commands? Good point! > This code is so old it's hard to remember what the rationale for all > this may have been. Perhaps people used to have huge ~/.mailcap files > installed by other programs, and that meant that all the nice internal > Emacs commands for dealing with stuff never got called? I really have no idea. Also, how does this interact with xdg/mimeapps stuff? For handling external applications, I basically tell Emacs to always use xdg-open, and then do the actual configuration in ~/.config/mimeapps.list, that way I'm using the same applications system-wide. But I think you're right, this code is probably tuned to the desktop as it existed a decade ago...