diff options
author | Michael Sperber <mike@xemacs.org> | 2015-10-20 11:18:30 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2015-10-20 11:18:30 +0000 |
commit | 90e9cf85be9b36cc11ae52af765b8f4236be8833 (patch) | |
tree | f195fcff68d69594a0283e1a4a87b40f12e47f18 /lisp/gnus/mailcap.el | |
parent | 2add4a63e7cf1de75cc47eae4ef1bd38da08fb8c (diff) | |
download | emacs-90e9cf85be9b36cc11ae52af765b8f4236be8833.tar.gz |
* lisp/gnus/mailcap.el (mailcap-mime-data):
Conditonalize `doc-view-mode', which does not exist on XEmacs.
Diffstat (limited to 'lisp/gnus/mailcap.el')
-rw-r--r-- | lisp/gnus/mailcap.el | 3 |
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." ("pdf" (viewer . doc-view-mode) (type . "application/pdf") - (test . (eq window-system 'x))) + (test . (and (fboundp 'doc-view-mode) + (eq window-system 'x)))) ("pdf" (viewer . "gv -safer %s") (type . "application/pdf") |