diff options
| author | Lars Ingebrigtsen | 2018-04-13 19:08:16 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-13 19:08:16 +0200 |
| commit | 7e47d44da4b54c518c5e09b4f3d58dafdd43033d (patch) | |
| tree | e86e75908e6fbcd522c91a7ae8b77e0686255676 /doc | |
| parent | 712607b05ac7c28a35e4682269adc53257ab9337 (diff) | |
| download | emacs-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')
| -rw-r--r-- | doc/misc/emacs-mime.texi | 12 |
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 | ||
| 1848 | Parse the @file{~/.mailcap} file. | 1849 | Parse the @file{~/.mailcap} file. |
| 1849 | 1850 | ||
| 1850 | @item mailcap-mime-info | 1851 | @item mailcap-mime-info |
| 1851 | Takes a @acronym{MIME} type as its argument and returns the matching viewer. | 1852 | Takes a @acronym{MIME} type as its argument and returns the matching viewer. |
| 1852 | 1853 | ||
| 1854 | The @code{mailcap-prefer-mailcap-viewers} variable controls which | ||
| 1855 | viewer is chosen. The default non-@code{nil} value means that | ||
| 1856 | settings from @file{~/.mailcap} is preferred over system-wide or | ||
| 1857 | Emacs-provided viewer settings. | ||
| 1858 | |||
| 1859 | If @code{nil}, Emacs-provided viewer settings have precedence. Next, | ||
| 1860 | the most specific viewer has precedence over less specific settings, | ||
| 1861 | no matter if they're system-provided or private, so @string{image/gif} | ||
| 1862 | in @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 | ||