instead of file name extension to make docs with uncommon
extensions work.
+2008-03-18 Tassilo Horn <tassilo@member.fsf.org>
+
+ * doc-view.el (doc-view-initiate-display): Use doc-view-doc-type
+ instead of file name extension to make docs with uncommon
+ extensions work.
+
2008-03-18 Tassilo Horn <tassilo@member.fsf.org>
* doc-view.el (require): Require cl at compile time because
(defun doc-view-initiate-display ()
;; Switch to image display if possible
- (if (doc-view-mode-p (intern (file-name-extension doc-view-buffer-file-name)))
+ (if (doc-view-mode-p doc-view-doc-type)
(progn
(doc-view-buffer-message)
(setf (doc-view-current-page) (or (doc-view-current-page) 1))