summaryrefslogtreecommitdiff
path: root/lisp/doc-view.el
diff options
context:
space:
mode:
authorTassilo Horn <tassilo@member.fsf.org>2011-01-13 21:17:15 +0100
committerTassilo Horn <tassilo@member.fsf.org>2011-01-13 21:17:15 +0100
commit1281bd51e87b6dc3f94418e70d7df5f634133b47 (patch)
tree883e0d9a8c299350074c13dc6419aeba6637388e /lisp/doc-view.el
parent5b3553158d4193cbc11753a936b455c0425f4716 (diff)
downloademacs-1281bd51e87b6dc3f94418e70d7df5f634133b47.tar.gz
(doc-view-initiate-display): Fall back to normal mode when
doc-view-mode cannot be enabled, also when extracting the document text into a separate buffer (bug#6446).
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r--lisp/doc-view.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 30b3f56956e..b4fd17ca453 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1243,11 +1243,11 @@ If BACKWARD is non-nil, jump to the previous match."
(concat "No PNG support is available, or some conversion utility for "
(file-name-extension doc-view-buffer-file-name)
" files is missing."))
- (if (and (executable-find doc-view-pdftotext-program)
- (y-or-n-p
- "Unable to render file. View extracted text instead? "))
- (doc-view-open-text)
- (doc-view-toggle-display))))
+ (when (and (executable-find doc-view-pdftotext-program)
+ (y-or-n-p
+ "Unable to render file. View extracted text instead? "))
+ (doc-view-open-text))
+ (doc-view-toggle-display)))
(defvar bookmark-make-record-function)