]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/gnus/mailcap.el (mailcap-mime-data):
authorMichael Sperber <mike@xemacs.org>
Tue, 20 Oct 2015 11:18:30 +0000 (11:18 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 20 Oct 2015 11:18:30 +0000 (11:18 +0000)
Conditonalize `doc-view-mode', which does not exist on XEmacs.

lisp/gnus/mailcap.el

index 9f84413996020c0676e2c5c111d78981b7eafcd3..a3348c69869fea54e664dfb86fd5ebbd27abae75 100644 (file)
@@ -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")