summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/image-mode.el3
1 files changed, 1 insertions, 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)