1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-16 10:50:49 -08:00

* doc-view.el (doc-view-mode-p): Check for png or imagemagick

image backend support.  Either of them is fine.
This commit is contained in:
Tassilo Horn 2011-01-08 23:57:07 +01:00
parent 2b9f65621b
commit c44d54b34f
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-01-08 Tassilo Horn <tassilo@member.fsf.org>
* doc-view.el (doc-view-mode-p): Check for png or imagemagick
image backend support. Either of them is fine.
2011-01-08 Chong Yidong <cyd@stupidchicken.com> 2011-01-08 Chong Yidong <cyd@stupidchicken.com>
* subr.el (y-or-n-p): Doc fix. * subr.el (y-or-n-p): Doc fix.

View file

@ -621,7 +621,8 @@ It's a subdirectory of `doc-view-cache-directory'."
Document types are symbols like `dvi', `ps', `pdf', or `odf' (any Document types are symbols like `dvi', `ps', `pdf', or `odf' (any
OpenDocument format)." OpenDocument format)."
(and (display-graphic-p) (and (display-graphic-p)
(image-type-available-p 'png) (or (image-type-available-p 'imagemagick)
(image-type-available-p 'png))
(cond (cond
((eq type 'dvi) ((eq type 'dvi)
(and (doc-view-mode-p 'pdf) (and (doc-view-mode-p 'pdf)