From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23184: 25.0.92; User-friendly way to override doc-view-mode as MIME viewer Date: Sat, 09 Apr 2016 12:47:03 +0300 Message-ID: <83k2k7i06g.fsf@gnu.org> References: <87shz4pi13.fsf@iki.fi> <878u0nj0au.fsf@gnu.org> <87inzrdtdh.fsf@iki.fi> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1460195291 16208 80.91.229.3 (9 Apr 2016 09:48:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2016 09:48:11 +0000 (UTC) Cc: 23184@debbugs.gnu.org, tsdh@gnu.org To: Teemu Likonen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 09 11:48:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aopUv-0002zd-E7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Apr 2016 11:48:09 +0200 Original-Received: from localhost ([::1]:59775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aopUt-0002Hi-T1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Apr 2016 05:48:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aopUr-0002GQ-1s for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 05:48:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aopUn-0007FK-Rd for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 05:48:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aopUn-0007F8-OI for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 05:48:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aopUn-0006q0-LE for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 05:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Apr 2016 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23184 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23184-submit@debbugs.gnu.org id=B23184.146019527126266 (code B ref 23184); Sat, 09 Apr 2016 09:48:01 +0000 Original-Received: (at 23184) by debbugs.gnu.org; 9 Apr 2016 09:47:51 +0000 Original-Received: from localhost ([127.0.0.1]:55182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aopUd-0006pa-HK for submit@debbugs.gnu.org; Sat, 09 Apr 2016 05:47:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aopUc-0006pL-AE for 23184@debbugs.gnu.org; Sat, 09 Apr 2016 05:47:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aopUU-0007CF-2z for 23184@debbugs.gnu.org; Sat, 09 Apr 2016 05:47:45 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aopUT-0007CB-Vg; Sat, 09 Apr 2016 05:47:42 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1234 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aopUS-0007iX-Tz; Sat, 09 Apr 2016 05:47:41 -0400 In-reply-to: <87inzrdtdh.fsf@iki.fi> (message from Teemu Likonen on Sat, 09 Apr 2016 12:27:38 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:116266 Archived-At: > From: Teemu Likonen > Date: Sat, 09 Apr 2016 12:27:38 +0300 > Cc: 23184@debbugs.gnu.org > > > (2) Or maybe we could add a customizable list `mailcap-user-mime-data' > > (better name welcome) which would override `mailcap-mime-data', > > i.e., if a viewer is specified there, then `mailcap-mime-data' with > > the heuristics around it won't even be consulted. > > > Any better suggestions? If not, I can do that. (In case I'd implement > > that, should that go only into master or emacs-25?) > > I don't oppose mailcap-user-mime-data but I think user shouldn't be > forced to duplicate his mailcap configuration inside Emacs. Does that suggestion really require duplication, or does it require to have only those (hopefully few) entries that override the default? > User already has his system's mailcap settings and many programs > respect that. Why doesn't Emacs? (Ok, it does but with its own > preferences of doc-view-mode etc.) Because doc-view-mode is specific to Emacs? > How about a variable like mailcap-prefer-system-mailcap with a non-nil > value would put the priority of doc-view-mode (and every viewer Emacs > offers) below system's mailcap configuration? That'd still require a separate customization in Emacs, so I wonder how it is better than what Tassilo proposed.