emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/backports-25.2 77c3f7f 24/46: Make `q' etc work in


From: Noam Postavsky
Subject: [Emacs-diffs] scratch/backports-25.2 77c3f7f 24/46: Make `q' etc work in image mode again
Date: Sun, 2 Oct 2016 14:04:49 +0000 (UTC)

branch: scratch/backports-25.2
commit 77c3f7ff88e371cbf0ac2db80305fabe78b10b44
Author: Lars Magne Ingebrigtsen <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Make `q' etc work in image mode again
    
    * lisp/image-mode.el (image-mode-map): Restore
    special-mode-map as the parent keymap of image-mode-map (bug#23167).
    
    (cherry picked from commit 43cc5d8bdf614aeb79acf691efe7e883112ddac9)
---
 lisp/image-mode.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index e549b49..8fecbf7 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -371,7 +371,7 @@ call."
   "Internal variable to keep the previous non-image major mode.")
 
 (defvar image-mode-map
-  (let ((map (make-sparse-keymap)))
+  (let ((map (copy-keymap image-map)))
     (set-keymap-parent map special-mode-map)
     (define-key map "\C-c\C-c" 'image-toggle-display)
     (define-key map (kbd "SPC")       'image-scroll-up)



reply via email to

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