diff options
author | Tassilo Horn <tassilo@member.fsf.org> | 2008-03-18 17:43:26 +0000 |
---|---|---|
committer | Tassilo Horn <tassilo@member.fsf.org> | 2008-03-18 17:43:26 +0000 |
commit | 322f4559810e375b0d42e4eae12339b4ebd8d051 (patch) | |
tree | d876bb9119a4473473463e59e92aa007c1c7c224 /lisp/doc-view.el | |
parent | 23cda57253e64d420e12e1ab56202bea5354c460 (diff) | |
download | emacs-322f4559810e375b0d42e4eae12339b4ebd8d051.tar.gz |
(doc-view-initiate-display): Use doc-view-doc-type
instead of file name extension to make docs with uncommon
extensions work.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 2c7862df885..da8edaaaed6 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -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)) |