# HG changeset patch # User Juri Linkov # Date 1259169672 0 # Node ID fb2730a2950ba61de4932a61f5251b177ce3eb31 # Parent 7ce04dfc904dcc005ce936bfebe8cbb3eb4cb0e8 (doc-view-mode): Set buffer-local `view-read-only' to nil instead of switching off view-mode. (Bug#4896) diff -r 7ce04dfc904d -r fb2730a2950b lisp/ChangeLog --- a/lisp/ChangeLog Wed Nov 25 17:18:26 2009 +0000 +++ b/lisp/ChangeLog Wed Nov 25 17:21:12 2009 +0000 @@ -1,3 +1,8 @@ +2009-11-25 Juri Linkov + + * 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 Mouse-wheel scrolling for DocView Continuous mode. (Bug#4896) diff -r 7ce04dfc904d -r fb2730a2950b lisp/doc-view.el --- a/lisp/doc-view.el Wed Nov 25 17:18:26 2009 +0000 +++ b/lisp/doc-view.el Wed Nov 25 17:21:12 2009 +0000 @@ -1272,7 +1272,7 @@ ;; 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