aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/doc-view.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f36f99ebdba..c2b968ea9dc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12008-03-18 Tassilo Horn <tassilo@member.fsf.org> 12008-03-18 Tassilo Horn <tassilo@member.fsf.org>
2 2
3 * doc-view.el (doc-view-initiate-display): Use doc-view-doc-type
4 instead of file name extension to make docs with uncommon
5 extensions work.
6
72008-03-18 Tassilo Horn <tassilo@member.fsf.org>
8
3 * doc-view.el (require): Require cl at compile time because 9 * doc-view.el (require): Require cl at compile time because
4 `assert' needs it. 10 `assert' needs it.
5 11
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."
957 957
958(defun doc-view-initiate-display () 958(defun doc-view-initiate-display ()
959 ;; Switch to image display if possible 959 ;; Switch to image display if possible
960 (if (doc-view-mode-p (intern (file-name-extension doc-view-buffer-file-name))) 960 (if (doc-view-mode-p doc-view-doc-type)
961 (progn 961 (progn
962 (doc-view-buffer-message) 962 (doc-view-buffer-message)
963 (setf (doc-view-current-page) (or (doc-view-current-page) 1)) 963 (setf (doc-view-current-page) (or (doc-view-current-page) 1))