aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sperber2015-10-20 11:18:30 +0000
committerKatsumi Yamaoka2015-10-20 11:18:30 +0000
commit90e9cf85be9b36cc11ae52af765b8f4236be8833 (patch)
treef195fcff68d69594a0283e1a4a87b40f12e47f18
parent2add4a63e7cf1de75cc47eae4ef1bd38da08fb8c (diff)
downloademacs-90e9cf85be9b36cc11ae52af765b8f4236be8833.tar.gz
emacs-90e9cf85be9b36cc11ae52af765b8f4236be8833.zip
* lisp/gnus/mailcap.el (mailcap-mime-data):
Conditonalize `doc-view-mode', which does not exist on XEmacs.
-rw-r--r--lisp/gnus/mailcap.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/mailcap.el b/lisp/gnus/mailcap.el
index 9f844139960..a3348c69869 100644
--- a/lisp/gnus/mailcap.el
+++ b/lisp/gnus/mailcap.el
@@ -160,7 +160,8 @@ This is a compatibility function for different Emacsen."
160 ("pdf" 160 ("pdf"
161 (viewer . doc-view-mode) 161 (viewer . doc-view-mode)
162 (type . "application/pdf") 162 (type . "application/pdf")
163 (test . (eq window-system 'x))) 163 (test . (and (fboundp 'doc-view-mode)
164 (eq window-system 'x))))
164 ("pdf" 165 ("pdf"
165 (viewer . "gv -safer %s") 166 (viewer . "gv -safer %s")
166 (type . "application/pdf") 167 (type . "application/pdf")