[Top][All Lists]

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

Re: doc-view and mailcap

From: Juri Linkov
Subject: Re: doc-view and mailcap
Date: Thu, 18 Oct 2007 02:35:59 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> 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?

I think the second variant is better.  Since this is a matter of doc-view
to decide if it can support displaying, it should have such a function

Juri Linkov

reply via email to

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