From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#23184: 25.0.92; User-friendly way to override doc-view-mode as MIME viewer Date: Mon, 11 Apr 2016 19:16:06 +0200 Message-ID: <877fg43w2x.fsf@gnu.org> References: <87shz4pi13.fsf@iki.fi> <878u0nj0au.fsf@gnu.org> <87inzrdtdh.fsf@iki.fi> <83k2k7i06g.fsf@gnu.org> <153fa8a7fb0.2779.69bc538c4644581689883e654f15bce0@gnu.org> <87potx762x.fsf@gnu.org> <87y48k3zca.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1460395044 19558 80.91.229.3 (11 Apr 2016 17:17:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2016 17:17:24 +0000 (UTC) Cc: tlikonen@iki.fi, 23184@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 19:17:12 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 1apfSa-0004p3-3M for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2016 19:17:12 +0200 Original-Received: from localhost ([::1]:58956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apfSZ-0006Ob-Ib for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2016 13:17:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apfSV-0006L7-Hn for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 13:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apfSQ-0002HY-4Q for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 13:17:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apfSQ-0002HP-1H for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 13:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1apfSP-0003Ph-RJ for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2016 13:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Apr 2016 17:17: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.146039497213060 (code B ref 23184); Mon, 11 Apr 2016 17:17:01 +0000 Original-Received: (at 23184) by debbugs.gnu.org; 11 Apr 2016 17:16:12 +0000 Original-Received: from localhost ([127.0.0.1]:59683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apfRb-0003Oa-Nn for submit@debbugs.gnu.org; Mon, 11 Apr 2016 13:16:11 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:35964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apfRa-0003OP-4A for 23184@debbugs.gnu.org; Mon, 11 Apr 2016 13:16:10 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DD7C720ED2 for <23184@debbugs.gnu.org>; Mon, 11 Apr 2016 13:16:09 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 11 Apr 2016 13:16:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=A6eTS9ZfYCPXhjvNvNx8aQJsWWU=; b=MDZwp cXePsp3FwQy53rqEOaCopbbKdCL//n7LtRy1WBSsnRyZsGpWyJh0X/g03hf3ymk2 G6eIu2a+mMT75MuZtZibtyAtNWFHO9B5w1Vn3MrfcV8/c2joKWieIgyhGaX5ADgh OARQCFKnbS9tNrHJDOU+WCGh+Q7a8+4g3TgzHk= X-Sasl-enc: Fb3HYi/Lk2C3zqUnUSeRKjUTh73zAEGWOIDsK+pUjRxs 1460394969 Original-Received: from thinkpad-t440p (unknown [2.161.198.151]) by mail.messagingengine.com (Postfix) with ESMTPA id D2633C0001A; Mon, 11 Apr 2016 13:16:08 -0400 (EDT) In-Reply-To: <87y48k3zca.fsf@web.de> (Michael Heerdegen's message of "Mon, 11 Apr 2016 18:05:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) 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:116387 Archived-At: Michael Heerdegen writes: Hi Michael and Teemu, >> I've just pushed the proposed change plus an addition to the Emacs >> MIME manual. I'm closing this bug now. > > Thanks. Works well for me, and the doc also looks good. > > I think what Teemu means is that this solution doesn't allow to say: > "for pdf, don't use docview, use the viewer as defined in the user's > mailcap file". One has to speak out the viewer's name, so there are > two places to change when the user changes his mind about which is his > preferred viewer (mailcap file and emacs customization). The problems with some variable "use my ~/.mailcap for these MIME types" are the following (when seen as an exclusive alternative to my `mailcap-user-mime-data'): - I'm not sure if mailcaps are common on non-GNU/unixy systems (Windows, Mac OSX, ...), so that could possibly rule out users of such systems. - What would happen if a user's mailcap doesn't contain an entry for a given type? Obviously, she'd need to add it there or add it to `mailcap-mime-data' which is not customizable and thus not very user-friendly. - What if a user want's to override a default entry with another Lisp alternative? That couldn't be added to ~/.mailcap (other than with some emacsclient call), so it would have to be added into `mailcap-mime-data' _before the standard alternatives_ which is quite hard. > We could allow something like (viewer . system) in > `mailcap-user-mime-data' which would mean, more or less: consult > `mailcap-mime-data' but skip any internal viewers. Does that make > sense? Yes, that would be doable. But wouldn't that essentially be the same as (viewer . "xdg-open") on GNU or (viewer . "open") on Mac OSX? Bye, Tassilo