Commit 54d1c8fa authored by Roland McGrath's avatar Roland McGrath

(view-exit): Use local map view-old-local-map, not (current-local-map).

parent 03329370
......@@ -268,7 +268,7 @@ If you viewed a file that was not present in Emacs, its buffer is killed."
(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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment