Mercurial > emacs
changeset 106242:fb2730a2950b
(doc-view-mode): Set buffer-local `view-read-only' to nil
instead of switching off view-mode. (Bug#4896)
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Wed, 25 Nov 2009 17:21:12 +0000 |
parents | 7ce04dfc904d |
children | 20e6e5b85a34 |
files | lisp/ChangeLog lisp/doc-view.el |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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)
--- 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