]> git.eshelyaron.com Git - emacs.git/commitdiff
(doc-view-mode): Set buffer-local `view-read-only' to nil
authorJuri Linkov <juri@jurta.org>
Wed, 25 Nov 2009 17:21:12 +0000 (17:21 +0000)
committerJuri Linkov <juri@jurta.org>
Wed, 25 Nov 2009 17:21:12 +0000 (17:21 +0000)
instead of switching off view-mode.  (Bug#4896)

lisp/ChangeLog
lisp/doc-view.el

index 87ea61009ac54602f55959dcb13c88d7aa88f5d3..e9c6242796783c1b91b50bcd6344e219b08d502f 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-25  Juri Linkov  <juri@jurta.org>
+
+       * doc-view.el (doc-view-mode): Set buffer-local `view-read-only'
+       to nil instead of switching off view-mode.  (Bug#4896)
+
 2009-11-25  Juri Linkov  <juri@jurta.org>
 
        Mouse-wheel scrolling for DocView Continuous mode.  (Bug#4896)
index 1036eca25e4144a2a5b6e8f3dfab356ddb26a8dd..661b2e56352f5878b7e3171685e295c62f235da5 100644 (file)
@@ -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