Mercurial > emacs
comparison src/window.c @ 112039:2fef20daac2b
* 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.
author | Tassilo Horn <tassilo@member.fsf.org> |
---|---|
date | Thu, 30 Dec 2010 19:08:18 +0100 |
parents | 18b73506d813 |
children | 40af77a50adc |
comparison
equal
deleted
inserted
replaced
112038:ad2a8fce0d7a | 112039:2fef20daac2b |
---|