(doc-view-initiate-display): Use doc-view-doc-type
instead of file name extension to make docs with uncommon extensions work.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
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
|
||||
|
||||
@@ -957,7 +957,7 @@ If BACKWARD is non-nil, jump to the previous match."
|
||||
|
||||
(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))
|
||||
|
||||
Reference in New Issue
Block a user