aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTassilo Horn2014-10-23 21:17:00 +0200
committerTassilo Horn2014-10-23 21:17:00 +0200
commit9e147f750bfc25894c0d14e53f44d4996d441a96 (patch)
treeaba278d72c1bf5b1622e8044d9e1719720137cad /doc
parent894b567b1c8e74a615441147b956263484119702 (diff)
downloademacs-9e147f750bfc25894c0d14e53f44d4996d441a96.tar.gz
emacs-9e147f750bfc25894c0d14e53f44d4996d441a96.zip
Backport latest doc-view fix
* doc/emacs/misc.texi (Document View): Adapt to latest doc-view changes wrt viewing the document's plain text contents. [Backport] * lisp/doc-view.el (doc-view-open-text): View the document's plain text in the current buffer instead of a new one. (doc-view-toggle-display): Handle the case where the current buffer contains the plain text contents of the document. (doc-view-initiate-display): Don't switch to fallback mode if the user wants to view the doc's plain text. [Backport]
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/misc.texi18
2 files changed, 20 insertions, 3 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 232330faf1e..2b9a13069d2 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12014-10-23 Tassilo Horn <tsdh@gnu.org>
2
3 * misc.texi (Document View): Adapt to latest doc-view changes wrt
4 viewing the document's plain text contents. [Backport]
5
12014-10-23 Eli Zaretskii <eliz@gnu.org> 62014-10-23 Eli Zaretskii <eliz@gnu.org>
2 7
3 * frames.texi (Frame Commands): Document and index 8 * frames.texi (Frame Commands): Document and index
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index f77cb993d71..386fd6fdd3b 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -266,9 +266,10 @@ Exit the summary buffer and return to the group buffer.
266OpenDocument, and Microsoft Office documents. It provides features 266OpenDocument, and Microsoft Office documents. It provides features
267such as slicing, zooming, and searching inside documents. It works by 267such as slicing, zooming, and searching inside documents. It works by
268converting the document to a set of images using the @command{gs} 268converting the document to a set of images using the @command{gs}
269(GhostScript) command and other external tools @footnote{@code{gs} is 269(GhostScript) or @command{mudraw}/@command{pdfdraw} (MuPDF) commands
270a hard requirement. For DVI files, @code{dvipdf} or @code{dvipdfm} is 270and other external tools @footnote{For PostScript files, GhostScript
271needed. For OpenDocument and Microsoft Office documents, the 271is a hard requirement. For DVI files, @code{dvipdf} or @code{dvipdfm}
272is needed. For OpenDocument and Microsoft Office documents, the
272@code{unoconv} tool is needed.}, and displaying those images. 273@code{unoconv} tool is needed.}, and displaying those images.
273 274
274@findex doc-view-toggle-display 275@findex doc-view-toggle-display
@@ -287,6 +288,17 @@ mode or DocView minor mode, repeating @kbd{C-c C-c}
287(@code{doc-view-toggle-display}) toggles between DocView and the 288(@code{doc-view-toggle-display}) toggles between DocView and the
288underlying file contents. 289underlying file contents.
289 290
291@findex doc-view-open-text
292 When you visit a file which would normally be handled by DocView
293mode but some requirement is not met (e.g., you operate in a terminal
294frame or emacs has no PNG support), you are queried if you want to
295view the document's contents as plain text. If you confirm, the
296buffer is put in text mode and DocView minor mode is activated. Thus,
297by typing @kbd{C-c C-c} you switch to the fallback mode. With another
298@kbd{C-c C-c} you return to DocView mode. The plain text contents can
299also be displayed from within DocView mode by typing @kbd{C-c C-t}
300(@code{doc-view-open-text}).
301
290 You can explicitly enable DocView mode with the command @code{M-x 302 You can explicitly enable DocView mode with the command @code{M-x
291doc-view-mode}. You can toggle DocView minor mode with @code{M-x 303doc-view-mode}. You can toggle DocView minor mode with @code{M-x
292doc-view-minor-mode}. 304doc-view-minor-mode}.