diff options
| author | Reiner Steib | 2007-12-03 07:24:34 +0000 |
|---|---|---|
| committer | Reiner Steib | 2007-12-03 07:24:34 +0000 |
| commit | d99abf1ba0a389e17b22f2289d07337eaee0bab6 (patch) | |
| tree | 5627b0ff614a112d4b36c4ec76459065770386a0 | |
| parent | 868641ccd0e885f0be144851991660cd65333013 (diff) | |
| download | emacs-d99abf1ba0a389e17b22f2289d07337eaee0bab6.tar.gz emacs-d99abf1ba0a389e17b22f2289d07337eaee0bab6.zip | |
(doc-view-initiate-display): Use `doc-view-mode-p'.
(doc-view-current-overlay, doc-view-pending-cache-flush): Add doc
string.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/doc-view.el | 16 |
2 files changed, 16 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2745a811c29..c381247b9b6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-12-03 Tassilo Horn <tassilo@member.fsf.org> | ||
| 2 | |||
| 3 | * doc-view.el (doc-view-initiate-display): Use `doc-view-mode-p'. | ||
| 4 | (doc-view-current-overlay, doc-view-pending-cache-flush): Add doc | ||
| 5 | string. | ||
| 6 | |||
| 1 | 2007-12-03 Richard Stallman <rms@gnu.org> | 7 | 2007-12-03 Richard Stallman <rms@gnu.org> |
| 2 | 8 | ||
| 3 | * subr.el (declare-function): Moved from byte-run.el. | 9 | * subr.el (declare-function): Moved from byte-run.el. |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index d0515fffe70..0e336b12dd5 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -234,8 +234,12 @@ has finished." | |||
| 234 | 234 | ||
| 235 | (defvar doc-view-current-image nil | 235 | (defvar doc-view-current-image nil |
| 236 | "Only used internally.") | 236 | "Only used internally.") |
| 237 | (defvar doc-view-current-overlay) | 237 | |
| 238 | (defvar doc-view-pending-cache-flush nil) | 238 | (defvar doc-view-current-overlay nil |
| 239 | "Only used internally.") | ||
| 240 | |||
| 241 | (defvar doc-view-pending-cache-flush nil | ||
| 242 | "Only used internally.") | ||
| 239 | 243 | ||
| 240 | (defvar doc-view-current-info nil | 244 | (defvar doc-view-current-info nil |
| 241 | "Only used internally.") | 245 | "Only used internally.") |
| @@ -887,8 +891,7 @@ If BACKWARD is non-nil, jump to the previous match." | |||
| 887 | 891 | ||
| 888 | (defun doc-view-initiate-display () | 892 | (defun doc-view-initiate-display () |
| 889 | ;; Switch to image display if possible | 893 | ;; Switch to image display if possible |
| 890 | (if (and (display-images-p) | 894 | (if (doc-view-mode-p (intern (file-name-extension buffer-file-name))) |
| 891 | (image-type-available-p 'png)) | ||
| 892 | (progn | 895 | (progn |
| 893 | (doc-view-buffer-message) | 896 | (doc-view-buffer-message) |
| 894 | (setq doc-view-current-page (or doc-view-current-page 1)) | 897 | (setq doc-view-current-page (or doc-view-current-page 1)) |
| @@ -905,8 +908,9 @@ If BACKWARD is non-nil, jump to the previous match." | |||
| 905 | (message | 908 | (message |
| 906 | "%s" | 909 | "%s" |
| 907 | (substitute-command-keys | 910 | (substitute-command-keys |
| 908 | (concat "No image (png) support available. Type \\[doc-view-toggle-display] " | 911 | (concat "No image (png) support available or some conversion utility for " |
| 909 | "to switch to an editing mode."))))) | 912 | (file-name-extension buffer-file-name)" files is missing. " |
| 913 | "Type \\[doc-view-toggle-display] to switch to an editing mode."))))) | ||
| 910 | 914 | ||
| 911 | ;;;###autoload | 915 | ;;;###autoload |
| 912 | (defun doc-view-mode () | 916 | (defun doc-view-mode () |