emacs-devel
[Top][All Lists]
Advanced

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

Re: patch: handle PS/PDF in Gnus


From: David Reitter
Subject: Re: patch: handle PS/PDF in Gnus
Date: Fri, 6 Jul 2007 16:52:09 +0100

On 6 Jul 2007, at 16:34, David Kastrup wrote:
* mailcap.el (mailcap-mime-data): handle Postscript and PDF on Mac OS
          X.

Why wouldn't one want to leave the handling to what is written in
/etc/mailcap?

/etc/mailcap doesn't exist on OS X. Mapping from file types to handler application is done via the LaunchServices database, which is most easily accessed via the "open" tool:

 (viewer . "open %s")
+      (type . "application/pdf")

As for the patch, calling pdf2ps and pdftops is not a good idea since this stuff isn't installed unless the user explicitly installs them (e.g. Ghostscript, which is mostly useless on the Mac).

What works, however, is to just use "open" with the PS files and let LaunchServices deal with it. Current systems come with a preview.app (which is what is normally launched for PDFs) that will automatically convert PS to PDF and display that.




reply via email to

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