aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2009-11-24 07:47:45 +0000
committerTassilo Horn2009-11-24 07:47:45 +0000
commitd1d33062d3d413f85ecd64ecaf565c0faed1e135 (patch)
tree01074b81b362173db612bf844e27becc88109253
parenta34d856516db603a6b4522972d844a3b9d3c64ee (diff)
downloademacs-d1d33062d3d413f85ecd64ecaf565c0faed1e135.tar.gz
emacs-d1d33062d3d413f85ecd64ecaf565c0faed1e135.zip
* doc-view.el (doc-view-mode): Switch off view-mode explicitly,
because it could be enabled automatically if view-read-only is non-nil.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/doc-view.el5
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 @@
12009-11-24 Tassilo Horn <tassilo@member.fsf.org>
2
3 * doc-view.el (doc-view-mode): Switch off view-mode explicitly,
4 because it could be enabled automatically if view-read-only is
5 non-nil.
6
12009-11-24 Michael Kifer <kifer@cs.stonybrook.edu> 72009-11-24 Michael Kifer <kifer@cs.stonybrook.edu>
2 8
3 * ediff-vers.el (ediff-rcs-get-output-buffer): Revert the change 9 * ediff-vers.el (ediff-rcs-get-output-buffer): Revert the change
4 made on 2009-11-22. 10 made on 2009-11-22.
5 11
62009-11-24 Glenn Morris <rgm@gnu.org> 122009-11-24 Glenn Morris <rgm@gnu.org>
7 13
8 * bookmark.el (bookmark-bmenu-hide-filenames): Remove assignment to 14 * 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.
1254 buffer-read-only t 1254 buffer-read-only t
1255 major-mode 'doc-view-mode) 1255 major-mode 'doc-view-mode)
1256 (doc-view-initiate-display) 1256 (doc-view-initiate-display)
1257 ;; Switch off view-mode explicitly, because doc-view-mode is the
1258 ;; canonical view mode for PDF/PS/DVI files. This could be
1259 ;; switched on automatically depending on the value of
1260 ;; `view-read-only'.
1261 (view-mode -1)
1257 (run-mode-hooks 'doc-view-mode-hook))) 1262 (run-mode-hooks 'doc-view-mode-hook)))
1258 1263
1259;;;###autoload 1264;;;###autoload