changeset 93050:831841710ce9

(doc-view-initiate-display): Use doc-view-doc-type instead of file name extension to make docs with uncommon extensions work.
author Tassilo Horn <tassilo@member.fsf.org>
date Tue, 18 Mar 2008 17:42:39 +0000
parents 6ed34a0188a5
children 7574d1ab68fd
files lisp/doc-view.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/doc-view.el	Tue Mar 18 12:02:44 2008 +0000
+++ b/lisp/doc-view.el	Tue Mar 18 17:42:39 2008 +0000
@@ -957,7 +957,7 @@
 
 (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))