diff options
| author | Tassilo Horn | 2008-03-18 17:43:26 +0000 |
|---|---|---|
| committer | Tassilo Horn | 2008-03-18 17:43:26 +0000 |
| commit | 322f4559810e375b0d42e4eae12339b4ebd8d051 (patch) | |
| tree | d876bb9119a4473473463e59e92aa007c1c7c224 /lisp | |
| parent | 23cda57253e64d420e12e1ab56202bea5354c460 (diff) | |
| download | emacs-322f4559810e375b0d42e4eae12339b4ebd8d051.tar.gz emacs-322f4559810e375b0d42e4eae12339b4ebd8d051.zip | |
(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')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/doc-view.el | 2 |
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 @@ | |||
| 1 | 2008-03-18 Tassilo Horn <tassilo@member.fsf.org> | 1 | 2008-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 | |||
| 7 | 2008-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)) |