all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: tlikonen@iki.fi, 23184@debbugs.gnu.org
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	[thread overview]
Message-ID: <877fg43w2x.fsf@gnu.org> (raw)
In-Reply-To: <87y48k3zca.fsf@web.de> (Michael Heerdegen's message of "Mon, 11 Apr 2016 18:05:41 +0200")

Michael Heerdegen <michael_heerdegen@web.de> 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





  parent reply	other threads:[~2016-04-11 17:16 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
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 [this message]
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=877fg43w2x.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=23184@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    --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.