From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.emacs.bugs Subject: bug#19644: doc-view-mode overrides my .mailcap settings Date: Wed, 25 Jan 2017 22:45:02 +0100 Message-ID: <871svq3jc1.fsf@imladris> References: <87egqoojd9.fsf@gnu.org> <87h94mbzmk.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485380777 11072 195.159.176.226 (25 Jan 2017 21:46:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2017 21:46:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 19644@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 25 22:46:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVOM-0002HR-FQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2017 22:46:10 +0100 Original-Received: from localhost ([::1]:34680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWVOR-0003v1-OL for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2017 16:46:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWVOI-0003rq-KK for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 16:46:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWVOE-0006MK-Jx for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 16:46:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWVOE-0006MG-GW for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2017 16:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWVOE-0005tL-9s; Wed, 25 Jan 2017 16:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 25 Jan 2017 21:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19644 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 19644-submit@debbugs.gnu.org id=B19644.148538071119908 (code B ref 19644); Wed, 25 Jan 2017 21:46:02 +0000 Original-Received: (at 19644) by debbugs.gnu.org; 25 Jan 2017 21:45:11 +0000 Original-Received: from localhost ([127.0.0.1]:43791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVNP-0005Ao-8g for submit@debbugs.gnu.org; Wed, 25 Jan 2017 16:45:11 -0500 Original-Received: from mail-wm0-f66.google.com ([74.125.82.66]:33691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWVNO-000547-61 for 19644@debbugs.gnu.org; Wed, 25 Jan 2017 16:45:10 -0500 Original-Received: by mail-wm0-f66.google.com with SMTP id r144so45630247wme.0 for <19644@debbugs.gnu.org>; Wed, 25 Jan 2017 13:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=/oX44QScrDAn8N+Sp9DqP2QSQEFT89ARuU1JkR+TJY8=; b=fJYi+VrNW9E4UDcUaTSu4e0ivGgdE6Sd6j7QqWxtvpevwr8rDuDf259oXlrYqDROTP SkKN59eFm910CZNyNGwB3c6sSNpggfsondVigRslmL6bt3n1Lvyh/bIaMUSlDCQzJzXn H6570z1+TMFMiQ3T4MNr+h8Ir1Rffb2N0zyd1ONbA5TVVbHM6PFuXVkOIQwp+dD+UMnu VoGDkvSjuH2R2Q/WJ5r6K0AjjVKfiwJX6yhxDw1diBmbTgoJfNre1cDtDUOy83DGDjFc +GizDp3QeDP5EW4+q92u+4G6gQTzpK7zSL7rWT1J/ScYUDrWE7vAXSgHJ+G4s5sMOv5z CmcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=/oX44QScrDAn8N+Sp9DqP2QSQEFT89ARuU1JkR+TJY8=; b=OQ/aZgJK3zrHrexFQnCxYYS14MA5O/FstfbjFvZVhk72YfSjr01JmxC4XruOehZ3sN GQLqdywHi1FDXPAgq2P0+nzDpV7V0d44yEyGleTfwur14e011OmAl4AO9dH8QR1ODH/I VlATQzODHiDl2lYAZ3O4gml1b8kaCd6RuTJ2k3b5Tp3mRmElTG2vsdVTOe0M5GemRxPk oe4mys5PdA2oXPSMq6M3yfln6NjmoZt1qIkkIYc5B2cCcXcoM0eO4E2mWWtlGfrpe2p3 Fa0xUEKLn2Csvlrkfg/tA3zn0HiNuMmabfypUkakFJcdzdvtFv2CuMYwv6VFCbDMW3pI iBnA== X-Gm-Message-State: AIkVDXKIoKXADvRhQMhAn1BIUqDbNvu7HSrJP9hAEWEw0ihBJutxP9rbDstQltQOP5SHuw== X-Received: by 10.28.87.85 with SMTP id l82mr21273wmb.135.1485380704134; Wed, 25 Jan 2017 13:45:04 -0800 (PST) Original-Received: from imladris.local (19.red-88-21-240.staticip.rima-tde.net. [88.21.240.19]) by smtp.gmail.com with ESMTPSA id e72sm11036017wma.16.2017.01.25.13.45.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Jan 2017 13:45:03 -0800 (PST) Original-Received: from imladris (localhost [127.0.0.1]) by imladris.local (Postfix) with ESMTPS id 9A6193207C9; Wed, 25 Jan 2017 22:45:02 +0100 (CET) In-Reply-To: <87h94mbzmk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 Jan 2017 22:25:55 +0100") X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128502 Archived-At: On Wed, Jan 25 2017, Lars Ingebrigtsen wrote: [...] >> Subject says it all. I want my ~/.mailcap settings to take precedence >> for application/pdf (and any other, really) over the defaults, but >> doc-view-mode (besides not working for me as a viewer) overrides them >> because it's an elisp function and mailcap-viewer-lessp likes it better. > > If I remember correctly, the reason Emacs overrides .mailcap is that in > the olden days, several Linux distributions came with pre-made .mailcap > files that had bad defaults for Emacs use. > > I think it's been a long time since that was the case, so perhaps > .mailcap should now always override everything else? Perhaps only ~/.mailcap (and not the system-wide one which, presumably, is the one that distributions installed, no?) is the one to take precedence? I don't remember any distribution creating a mailcap for me in my $HOME, but admittedly, i haven't used many different distros.