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

lisp/image-mode.el

index f4a17b2a28a69a27d7bfc5dee237035983854385..a18b07ebe6a9b2dd3e528af54e8131f665015ef6 100644 (file)
@@ -371,7 +371,7 @@ call."
   "Internal variable to keep the previous non-image major mode.")
 
 (defvar image-mode-map
-  (let ((map (make-composed-keymap image-map special-mode-map)))
+  (let ((map (make-sparse-keymap)))
     (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)
@@ -476,7 +476,7 @@ call."
        ["Goto Frame..." image-goto-frame :active image-multi-frame
         :help "Show a specific frame of this image"]
        ))
-    map)
+    (make-composed-keymap (list map image-map) special-mode-map))
   "Mode keymap for `image-mode'.")
 
 (defvar image-minor-mode-map