* doc-view.el (doc-view-set-doc-type): New function refactored
authorTassilo Horn <tassilo@member.fsf.org>
Thu, 30 Dec 2010 18:08:18 +0000 (19:08 +0100)
committerTassilo Horn <tassilo@member.fsf.org>
Thu, 30 Dec 2010 18:08:18 +0000 (19:08 +0100)
commit291cc04566397aa80f1d8c4ff92abbf656fc4512
treeaea2d142023720c18cbe20e1bd068dcda81f9d5f
parent8ee2dc5cffd4b79007058f28dbf8fb10f02e462a
* doc-view.el (doc-view-set-doc-type): New function refactored
from doc-view-mode.
(doc-view-fallback-mode): New function.
(doc-view-mode): Use it.
(doc-view-mode-maybe): New function that checks if doc-view-mode
can be used and falls back to the next best mode otherwise.

* files.el (auto-mode-alist): Use doc-view-mode-maybe for PDF,
DVI, OpenDocument, and MS Office files.
lisp/ChangeLog
lisp/doc-view.el
lisp/files.el