From b7a21984cc4543139c69d8ff8c2430913fc0e6fc Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 24 Apr 2016 17:11:23 +0200 Subject: [PATCH] Use `make-composed-keymap' instead of copying the keymap * lisp/image-mode.el (image-mode-map): Use `make-composed-keymap' instead of copying the keymap. --- 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 e887e296308..f4a17b2a28a 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -371,8 +371,7 @@ call." "Internal variable to keep the previous non-image major mode.") (defvar image-mode-map - (let ((map (copy-keymap image-map))) - (set-keymap-parent map special-mode-map) + (let ((map (make-composed-keymap image-map special-mode-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