diff options
author | Tassilo Horn <tassilo@member.fsf.org> | 2009-11-24 07:47:45 +0000 |
---|---|---|
committer | Tassilo Horn <tassilo@member.fsf.org> | 2009-11-24 07:47:45 +0000 |
commit | d1d33062d3d413f85ecd64ecaf565c0faed1e135 (patch) | |
tree | 01074b81b362173db612bf844e27becc88109253 /lisp/doc-view.el | |
parent | a34d856516db603a6b4522972d844a3b9d3c64ee (diff) | |
download | emacs-d1d33062d3d413f85ecd64ecaf565c0faed1e135.tar.gz |
* doc-view.el (doc-view-mode): Switch off view-mode explicitly,
because it could be enabled automatically if view-read-only is
non-nil.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index afb2e48b145..0580e106012 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1254,6 +1254,11 @@ toggle between displaying the document or editing it as text. buffer-read-only t major-mode 'doc-view-mode) (doc-view-initiate-display) + ;; Switch off view-mode explicitly, because doc-view-mode is the + ;; canonical view mode for PDF/PS/DVI files. This could be + ;; switched on automatically depending on the value of + ;; `view-read-only'. + (view-mode -1) (run-mode-hooks 'doc-view-mode-hook))) ;;;###autoload |