From 90e9cf85be9b36cc11ae52af765b8f4236be8833 Mon Sep 17 00:00:00 2001 From: Michael Sperber Date: Tue, 20 Oct 2015 11:18:30 +0000 Subject: [PATCH] * lisp/gnus/mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode', which does not exist on XEmacs. --- lisp/gnus/mailcap.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- 2.39.2