From d1d33062d3d413f85ecd64ecaf565c0faed1e135 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 24 Nov 2009 07:47:45 +0000 Subject: [PATCH] * doc-view.el (doc-view-mode): Switch off view-mode explicitly, because it could be enabled automatically if view-read-only is non-nil. --- lisp/ChangeLog | 10 ++++++++-- lisp/doc-view.el | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a3b6b604480..054ff8d268b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,8 +1,14 @@ +2009-11-24 Tassilo Horn + + * doc-view.el (doc-view-mode): Switch off view-mode explicitly, + because it could be enabled automatically if view-read-only is + non-nil. + 2009-11-24 Michael Kifer - + * ediff-vers.el (ediff-rcs-get-output-buffer): Revert the change made on 2009-11-22. - + 2009-11-24 Glenn Morris * bookmark.el (bookmark-bmenu-hide-filenames): Remove assignment to 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 -- 2.11.4.GIT