all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* patch: handle PS/PDF in Gnus
@ 2007-07-06 15:21 Sean O'Rourke
  2007-07-06 15:27 ` Sean O'Rourke
  0 siblings, 1 reply; 26+ messages in thread
From: Sean O'Rourke @ 2007-07-06 15:21 UTC (permalink / raw)
  To: emacs-devel

The following patch makes Gnus handle Postscript and PDF
attachments on Mac OS X.  Something similar should probably be
done for a bunch of other attachment types, but these are the
ones I have needed.

/s,
browsing the accumulated diff between his sources and CVS...

Index: mailcap.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/gnus/mailcap.el,v
retrieving revision 1.16
diff -u -r1.16 mailcap.el
--- mailcap.el	21 Jan 2007 02:54:13 -0000	1.16
+++ mailcap.el	6 Jul 2007 15:20:50 -0000
@@ -137,6 +137,11 @@
       (type   . "application/zip")
       ("copiousoutput"))
      ("pdf"
+      (viewer . "open %s")
+      (type . "application/pdf")
+      (test . (eq window-system 'mac))
+      ("print" . ,(concat "pdf2ps %s - | " mailcap-print-command)))
+     ("pdf"
       (viewer . "gv -safer %s")
       (type . "application/pdf")
       (test . window-system)
@@ -157,6 +162,11 @@
       ("print" . ,(concat "pdftops %s - | " mailcap-print-command))
       ("copiousoutput"))
      ("postscript"
+      (viewer . "open %s")
+      (type . "application/postscript")
+      (test . (eq window-system 'mac))
+      ("print" . ,(concat mailcap-print-command " %s")))
+     ("postscript"
       (viewer . "gv -safer %s")
       (type . "application/postscript")
       (test   . window-system)

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

end of thread, other threads:[~2007-07-12  9:35 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 15:21 patch: handle PS/PDF in Gnus Sean O'Rourke
2007-07-06 15:27 ` Sean O'Rourke
2007-07-06 15:34   ` David Kastrup
2007-07-06 15:52     ` David Reitter
2007-07-06 15:54       ` Sean O'Rourke
2007-07-06 16:31         ` David Reitter
2007-07-08  3:15           ` YAMAMOTO Mitsuharu
2007-07-08  3:22             ` Eli Zaretskii
2007-07-08 13:41               ` YAMAMOTO Mitsuharu
2007-07-08 14:31               ` Stefan Monnier
2007-07-09 10:52                 ` Jan Djärv
2007-07-09 12:39                   ` David Kastrup
2007-07-09 14:17                     ` Jan Djärv
2007-07-09 18:03                   ` YAMAMOTO Mitsuharu
2007-07-09 19:57                     ` Jan Djärv
2007-07-11 21:51                 ` Jason Rumney
2007-07-12  9:35                   ` Jan Djärv
2007-07-06 18:13       ` Stefan Monnier
2007-07-06 19:32         ` Sean O'Rourke
2007-07-08  5:13           ` Sean O'Rourke
2007-07-08 10:19             ` Jason Rumney
2007-07-08 13:03               ` Sean O'Rourke
2007-07-08 13:14                 ` Sean O'Rourke
2007-07-06 20:44         ` Jason Rumney
2007-07-08  4:52           ` Sean O'Rourke
2007-07-06 15:53     ` Sean O'Rourke

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.