* mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode',
authorMichael Sperber <mike@xemacs.org>
Tue, 20 Oct 2015 11:18:07 +0000 (11:18 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 20 Oct 2015 11:18:07 +0000 (11:18 +0000)
which does not exist on XEmacs.

lisp/ChangeLog
lisp/mailcap.el

index 1f1102d..c8c5b3e 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-20  Michael Sperber  <mike@xemacs.org>
+
+       * mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode', which
+       does not exist on XEmacs.
+
 2015-10-18  Michael Sperber  <mike@xemacs.org>
 
        * nnml.el (nnml-retrieve-groups, nnml-request-scan):
 2015-10-18  Michael Sperber  <mike@xemacs.org>
 
        * nnml.el (nnml-retrieve-groups, nnml-request-scan):
index 9f84413..a3348c6 100644 (file)
@@ -160,7 +160,8 @@ This is a compatibility function for different Emacsen."
      ("pdf"
       (viewer . doc-view-mode)
       (type . "application/pdf")
      ("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")
      ("pdf"
       (viewer . "gv -safer %s")
       (type . "application/pdf")