Gnus development mailing list
 help / color / mirror / Atom feed
* PATCH: Conditionalize `doc-view-mode'
@ 2015-10-20  9:09 Michael Sperber
  2015-10-20 11:11 ` Katsumi Yamaoka
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Sperber @ 2015-10-20  9:09 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]


This patch unbreaks PDF viewing on XEmacs.  (Well, partly, see next
patch.)  If somebody could apply it, that would be much appreciated.

-- 
Regards,
Mike

[-- Attachment #2: Type: text/plain, Size: 1107 bytes --]

commit d07342afa746c44f10a0ae1aa344b3c31b28cfdf
Author: Mike Sperber <sperber@deinprogramm.de>
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  <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): 
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")

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Conditionalize `doc-view-mode'
  2015-10-20  9:09 PATCH: Conditionalize `doc-view-mode' Michael Sperber
@ 2015-10-20 11:11 ` Katsumi Yamaoka
  0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2015-10-20 11:11 UTC (permalink / raw)
  To: Michael Sperber; +Cc: ding

On Tue, 20 Oct 2015 11:09:06 +0200, Michael Sperber wrote:
> This patch unbreaks PDF viewing on XEmacs.  (Well, partly, see next
> patch.)  If somebody could apply it, that would be much appreciated.

This is necessary for XEmacs to work.  I'll install it in Gnus
and Emacs git masters.  Thanks.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-20 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-20  9:09 PATCH: Conditionalize `doc-view-mode' Michael Sperber
2015-10-20 11:11 ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).