summaryrefslogtreecommitdiff
path: root/doc/misc/emacs-mime.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2018-04-13 19:08:16 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2018-04-13 19:08:16 +0200
commit7e47d44da4b54c518c5e09b4f3d58dafdd43033d (patch)
treee86e75908e6fbcd522c91a7ae8b77e0686255676 /doc/misc/emacs-mime.texi
parent712607b05ac7c28a35e4682269adc53257ab9337 (diff)
downloademacs-7e47d44da4b54c518c5e09b4f3d58dafdd43033d.tar.gz
Prefer settings from ~/.mailcap over system and Emacs settings
* doc/misc/emacs-mime.texi (mailcap): Document the variable and how mailcap chooses which viewer to use. * lisp/net/mailcap.el (mailcap-prefer-mailcap-viewers): New variable. (mailcap-mime-info): Use it.
Diffstat (limited to 'doc/misc/emacs-mime.texi')
-rw-r--r--doc/misc/emacs-mime.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi
index c0b16f30c4d..db9ed8dda76 100644
--- a/doc/misc/emacs-mime.texi
+++ b/doc/misc/emacs-mime.texi
@@ -1845,11 +1845,23 @@ Interface functions:
@table @code
@item mailcap-parse-mailcaps
@findex mailcap-parse-mailcaps
+@vindex mailcap-prefer-mailcap-viewers
Parse the @file{~/.mailcap} file.
@item mailcap-mime-info
Takes a @acronym{MIME} type as its argument and returns the matching viewer.
+The @code{mailcap-prefer-mailcap-viewers} variable controls which
+viewer is chosen. The default non-@code{nil} value means that
+settings from @file{~/.mailcap} is preferred over system-wide or
+Emacs-provided viewer settings.
+
+If @code{nil}, Emacs-provided viewer settings have precedence. Next,
+the most specific viewer has precedence over less specific settings,
+no matter if they're system-provided or private, so @string{image/gif}
+in @file{/etc/mailcap} will ``win'' over a @string{image/*} setting in
+@file{~/.mailcap}.
+
@end table