aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-13 19:08:16 +0200
committerLars Ingebrigtsen2018-04-13 19:08:16 +0200
commit7e47d44da4b54c518c5e09b4f3d58dafdd43033d (patch)
treee86e75908e6fbcd522c91a7ae8b77e0686255676 /doc/misc
parent712607b05ac7c28a35e4682269adc53257ab9337 (diff)
downloademacs-7e47d44da4b54c518c5e09b4f3d58dafdd43033d.tar.gz
emacs-7e47d44da4b54c518c5e09b4f3d58dafdd43033d.zip
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')
-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:
1845@table @code 1845@table @code
1846@item mailcap-parse-mailcaps 1846@item mailcap-parse-mailcaps
1847@findex mailcap-parse-mailcaps 1847@findex mailcap-parse-mailcaps
1848@vindex mailcap-prefer-mailcap-viewers
1848Parse the @file{~/.mailcap} file. 1849Parse the @file{~/.mailcap} file.
1849 1850
1850@item mailcap-mime-info 1851@item mailcap-mime-info
1851Takes a @acronym{MIME} type as its argument and returns the matching viewer. 1852Takes a @acronym{MIME} type as its argument and returns the matching viewer.
1852 1853
1854The @code{mailcap-prefer-mailcap-viewers} variable controls which
1855viewer is chosen. The default non-@code{nil} value means that
1856settings from @file{~/.mailcap} is preferred over system-wide or
1857Emacs-provided viewer settings.
1858
1859If @code{nil}, Emacs-provided viewer settings have precedence. Next,
1860the most specific viewer has precedence over less specific settings,
1861no matter if they're system-provided or private, so @string{image/gif}
1862in @file{/etc/mailcap} will ``win'' over a @string{image/*} setting in
1863@file{~/.mailcap}.
1864
1853@end table 1865@end table
1854 1866
1855 1867