emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 90e9cf8: * lisp/gnus/mailcap.el (mailcap-mime-data)


From: Katsumi Yamaoka
Subject: [Emacs-diffs] master 90e9cf8: * lisp/gnus/mailcap.el (mailcap-mime-data):
Date: Tue, 20 Oct 2015 11:19:11 +0000

branch: master
commit 90e9cf85be9b36cc11ae52af765b8f4236be8833
Author: Michael Sperber <address@hidden>
Commit: Katsumi Yamaoka <address@hidden>

    * lisp/gnus/mailcap.el (mailcap-mime-data):
    Conditonalize `doc-view-mode', which does not exist on XEmacs.
---
 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 9f84413..a3348c6 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]