From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86241 Path: news.gmane.org!not-for-mail From: Michael Sperber Newsgroups: gmane.emacs.gnus.general Subject: PATCH: Conditionalize `doc-view-mode' Date: Tue, 20 Oct 2015 11:09:06 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1445332270 6361 80.91.229.3 (20 Oct 2015 09:11:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2015 09:11:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34475@lists.math.uh.edu Tue Oct 20 11:10:56 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZoSwR-0002ot-9o for ding-account@gmane.org; Tue, 20 Oct 2015 11:10:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1ZoSvN-0006ty-Lg; Tue, 20 Oct 2015 04:09:41 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZoSvL-0006tf-NC for ding@lists.math.uh.edu; Tue, 20 Oct 2015 04:09:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZoSvK-0006os-IE for ding@lists.math.uh.edu; Tue, 20 Oct 2015 04:09:39 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1ZoSvI-00051u-It for ding@gnus.org; Tue, 20 Oct 2015 11:09:36 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZoSuz-0001hm-Dt for ding@gnus.org; Tue, 20 Oct 2015 11:09:17 +0200 Original-Received: from 195.52.203.132 ([195.52.203.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2015 11:09:17 +0200 Original-Received: from sperber by 195.52.203.132 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2015 11:09:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195.52.203.132 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) XEmacs/21.5-b34 (darwin) Cancel-Lock: sha1:CGc5ATH22FWWO4bQkb2m3z+VcPw= X-Spam-Score: -1.7 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86241 Archived-At: --=-=-= Content-Type: text/plain This patch unbreaks PDF viewing on XEmacs. (Well, partly, see next patch.) If somebody could apply it, that would be much appreciated. -- Regards, Mike --=-=-= Content-Type: text/plain Content-Disposition: inline commit d07342afa746c44f10a0ae1aa344b3c31b28cfdf Author: Mike Sperber Date: Tue Oct 20 11:05:57 2015 +0200 * mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode', which does not exist on XEmacs. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 979a845..3e2f0e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-10-20 Michael Sperber + + * mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode', which + does not exist on XEmacs. + 2015-10-18 Michael Sperber * nnml.el (nnml-retrieve-groups, nnml-request-scan): diff --git a/lisp/mailcap.el b/lisp/mailcap.el index 9f84413..a3348c6 100644 --- a/lisp/mailcap.el +++ b/lisp/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") --=-=-=--