From 43cc5d8bdf614aeb79acf691efe7e883112ddac9 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 24 Apr 2016 16:22:31 +0200 Subject: [PATCH] Make `q' etc work in image mode again * lisp/image-mode.el (image-mode-map): Restore special-mode-map as the parent keymap of image-mode-map (bug#23167). --- lisp/image-mode.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 3334d6a823e..e887e296308 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -371,9 +371,8 @@ call." "Internal variable to keep the previous non-image major mode.") (defvar image-mode-map - (let ((map (make-sparse-keymap))) + (let ((map (copy-keymap image-map))) (set-keymap-parent map special-mode-map) - (set-keymap-parent map image-map) (define-key map "\C-c\C-c" 'image-toggle-display) (define-key map "\C-c\C-x" 'image-toggle-hex-display) (define-key map (kbd "SPC") 'image-scroll-up) -- 2.39.2