* lisp/doc-view.el: Add support for DjVu.
authorElias Pipping <pipping@lavabit.com>
Wed, 9 Jan 2013 21:24:42 +0000 (16:24 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Jan 2013 21:24:42 +0000 (16:24 -0500)
commitbabc0e645dbece5baaa9e401a031f741c232c683
tree0a0cd858bd50de90e399e714a723a6fc4c209e1a
parenta722a1162114a9d17d4255c37a77b93fb8c66868
* lisp/doc-view.el: Add support for DjVu.
(doc-view-djvu->png-converter-function): New config var.
(doc-view-single-page-converter-function, doc-view--image-type)
(doc-view--image-file-extension): New vars.
(doc-view-mode): Initialize them.
(doc-view-goto-page): Use them.
(doc-view-mode-p): Add support for ddjvu.
(doc-view-djvu->png-converter-ddjvu, doc-view-djvu->png-1)
(doc-view-set-up-single-converter): New funs.
(doc-view-pdf/ps->png): Extend for djvu.
(doc-view-document->png): Rename from doc-view-pdf->png.
(doc-view-convert-current-doc): Handle djvu.
(doc-view-insert-image, doc-view-display)
(doc-view-already-converted-p): Don't hardcode png.
(doc-view-set-doc-type): Recognize djvu docs.
lisp/ChangeLog
lisp/doc-view.el