aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-07-17 19:43:49 +0000
committerChong Yidong2009-07-17 19:43:49 +0000
commit0855c2caf383ba9412e2f3db0ac374a94a055222 (patch)
tree9523d941e66bd2d3f7c9d635278eed4cc50fbc54
parent3f5c9cad1790b08f123b2bf81aa090b23e416f25 (diff)
downloademacs-0855c2caf383ba9412e2f3db0ac374a94a055222.tar.gz
emacs-0855c2caf383ba9412e2f3db0ac374a94a055222.zip
* doc-view.el (doc-view-initiate-display): Add yes-or-no-p if
rendering of pngs is not possible instead of messaging a long description.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/doc-view.el17
2 files changed, 14 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e3a342032a2..df01e56c679 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-07-17 Tassilo Horn <tassilo@member.fsf.org>
2
3 * doc-view.el (doc-view-initiate-display): Add yes-or-no-p if
4 rendering of pngs is not possible instead of messaging a long
5 description.
6
12009-07-17 David De La Harpe Golden <david@harpegolden.net> 72009-07-17 David De La Harpe Golden <david@harpegolden.net>
2 8
3 * w32-fns.el (x-selection-owner-p): New function. 9 * w32-fns.el (x-selection-owner-p): New function.
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index ce6a7fd0ba9..3ea4fcecfde 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1078,15 +1078,14 @@ If BACKWARD is non-nil, jump to the previous match."
1078 "editing or viewing the document.")))) 1078 "editing or viewing the document."))))
1079 (message 1079 (message
1080 "%s" 1080 "%s"
1081 (substitute-command-keys 1081 (concat "No PNG support is available, or some conversion utility for "
1082 (concat "No PNG support available or some conversion utility for " 1082 (file-name-extension doc-view-buffer-file-name)
1083 (file-name-extension doc-view-buffer-file-name)" files is missing. " 1083 " files is missing."))
1084 "Type \\[doc-view-toggle-display] to switch to " 1084 (if (and (executable-find doc-view-pdftotext-program)
1085 (if (eq doc-view-doc-type 'ps) 1085 (y-or-n-p
1086 "ps-mode" 1086 "Unable to render file. View extracted text instead? "))
1087 "fundamental-mode") 1087 (doc-view-open-text)
1088 ", \\[doc-view-open-text] to show the doc as text in a separate buffer " 1088 (doc-view-toggle-display))))
1089 " or \\[doc-view-kill-proc-and-buffer] to kill this buffer.")))))
1090 1089
1091(defvar bookmark-make-record-function) 1090(defvar bookmark-make-record-function)
1092 1091