emacs-devel
[Top][All Lists]
Advanced

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

doc-view and mailcap (was: Please install: Some improvements to doc-view


From: Reiner Steib
Subject: doc-view and mailcap (was: Please install: Some improvements to doc-view.el)
Date: Thu, 18 Oct 2007 00:04:10 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

On Wed, Oct 17 2007, Richard Stallman wrote:

> If the current terminal is not graphical, Gnus should fall back on
> the external displayer, since in some cases that will work.

On Wed, Oct 17 2007, Juri Linkov wrote:

[...]
> Yes, it seems this is just a matter of adding
>
>      ("application/postscript"
>       (viewer . doc-view-mode)
>       (test   . (fboundp 'doc-view-mode))
>       (type   . "application/postscript"))
[...]
> to `mailcap-mime-data'.

To follow Richard's suggestion, the test should be something like...

(and (fboundp 'doc-view-mode)
     (display-graphic-p)
     (image-type-available-p 'png))

or...

(and (fboundp 'doc-view-mode-p)
     (doc-view-mode-p))

with (in `doc-view.el')...

(defun doc-view-mode-p ()
  (and (display-graphic-p)
       (image-type-available-p 'png)))

Shouldn't it?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

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