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:
parent
2b9f65621b
commit
c44d54b34f
2 changed files with 7 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue