all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>, Teemu Likonen <tlikonen@iki.fi>
Cc: 23184@debbugs.gnu.org
Subject: bug#23184: 25.0.92; User-friendly way to override doc-view-mode as MIME viewer
Date: Sat, 09 Apr 2016 12:21:35 +0200	[thread overview]
Message-ID: <153fa8a7fb0.2779.69bc538c4644581689883e654f15bce0@gnu.org> (raw)
In-Reply-To: <83k2k7i06g.fsf@gnu.org>

Hi Teemu and Eli,

that's exactly my intention: have a simple way to override emacs heuristic 
choices in case where they don't match the user's expectations. So in your 
case, you'd be fine with just a single entry for application/pdf and your 
preferred viewer.

The problem with an option to simply use ~/.mailcap is that in there, you 
cannot use emacs viewers at all.

Bye,
Tassilo


Am 9. April 2016 11:47:50 schrieb Eli Zaretskii <eliz@gnu.org>:

>> From: Teemu Likonen <tlikonen@iki.fi>
>> 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.
>







  reply	other threads:[~2016-04-09 10:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02  7:49 bug#23184: 25.0.92; User-friendly way to override doc-view-mode as MIME viewer Teemu Likonen
2016-04-08 20:46 ` Tassilo Horn
2016-04-09  6:41   ` Eli Zaretskii
2016-04-09  8:57     ` Tassilo Horn
2016-04-09  9:27   ` Teemu Likonen
2016-04-09  9:47     ` Eli Zaretskii
2016-04-09 10:21       ` Tassilo Horn [this message]
2016-04-10 16:59         ` Tassilo Horn
2016-04-11 16:05           ` Michael Heerdegen
2016-04-11 16:12             ` Teemu Likonen
2016-04-11 17:16             ` Tassilo Horn
2016-04-11 19:09               ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=153fa8a7fb0.2779.69bc538c4644581689883e654f15bce0@gnu.org \
    --to=tsdh@gnu.org \
    --cc=23184@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=tlikonen@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.