summaryrefslogtreecommitdiff
path: root/lisp/view.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/view.el')
-rw-r--r--lisp/view.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/view.el b/lisp/view.el
index a4b6442beb0..5648a016ea1 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -268,7 +268,7 @@ If you viewed a file that was not present in Emacs, its buffer is killed."
view-old-mode-line-buffer-identification)
(setq major-mode view-old-major-mode)
(setq mode-name view-old-mode-name)
- (use-local-map (current-local-map))
+ (use-local-map view-old-local-map)
(setq buffer-read-only view-old-buffer-read-only)
(goto-char view-exit-position)