summaryrefslogtreecommitdiff
path: root/lisp/doc-view.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2009-11-25 17:21:12 +0000
committerJuri Linkov <juri@jurta.org>2009-11-25 17:21:12 +0000
commitbde04ea9ca94664fdee6634ce040648f4de43c7f (patch)
tree9fe6939843eefe16363d77b74874d6fbfcca2e46 /lisp/doc-view.el
parent7d6b4d3cadac4b8343309388dd5e9e225d6f9f4c (diff)
downloademacs-bde04ea9ca94664fdee6634ce040648f4de43c7f.tar.gz
(doc-view-mode): Set buffer-local `view-read-only' to nil
instead of switching off view-mode. (Bug#4896)
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r--lisp/doc-view.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 1036eca25e4..661b2e56352 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1272,7 +1272,7 @@ toggle between displaying the document or editing it as text.
;; 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)
+ (set (make-local-variable 'view-read-only) nil)
(run-mode-hooks 'doc-view-mode-hook)))
;;;###autoload