diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2016-04-24 17:11:23 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2016-04-24 17:11:23 +0200 |
commit | b7a21984cc4543139c69d8ff8c2430913fc0e6fc (patch) | |
tree | 434ef822d2656ac815845610a0e42382ba15e55b | |
parent | 43cc5d8bdf614aeb79acf691efe7e883112ddac9 (diff) |
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.
-rw-r--r-- | lisp/image-mode.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index e887e29630..f4a17b2a28 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) |