]> git.eshelyaron.com Git - emacs.git/commitdiff
Use `make-composed-keymap' instead of copying the keymap
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 24 Apr 2016 15:11:23 +0000 (17:11 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 24 Apr 2016 15:11:23 +0000 (17:11 +0200)
* lisp/image-mode.el (image-mode-map): Use
`make-composed-keymap' instead of copying the keymap.

lisp/image-mode.el

index e887e296308297e8b4125e1e2c7111368cbf8940..f4a17b2a28a69a27d7bfc5dee237035983854385 100644 (file)
@@ -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)