emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b7a2198: Use `make-composed-keymap' instead of copy


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master b7a2198: Use `make-composed-keymap' instead of copying the keymap
Date: Sun, 24 Apr 2016 15:11:32 +0000

branch: master
commit b7a21984cc4543139c69d8ff8c2430913fc0e6fc
Author: Lars Magne Ingebrigtsen <address@hidden>
Commit: Lars Magne Ingebrigtsen <address@hidden>

    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 e887e29..f4a17b2 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]