[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 378d138: Make image commands available in image-mod
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 378d138: Make image commands available in image-mode |
Date: |
Wed, 24 Feb 2016 07:11:59 +0000 |
branch: master
commit 378d138e64e9389e277e95528c143dc2456727a5
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Make image commands available in image-mode
* lisp/image-mode.el (image-mode-map): Inherit from
`image-map' so that the usual image commands work.
---
etc/NEWS | 3 ++-
lisp/image-mode.el | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index 4a6a0ac..ae503f6 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -902,7 +902,8 @@ in question).
*** Images inserted with `insert-image' and related functions get a
keymap put into the text properties (or overlays) that span the
image. This keymap binds keystrokes for manipulating size and
-rotation, as well as saving the image to a file.
+rotation, as well as saving the image to a file. These commands are
+also available in `image-mode'.
+++
*** A new library for creating and manipulating SVG images has been
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index e549b49..e2037b9 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -373,6 +373,7 @@ call."
(defvar image-mode-map
(let ((map (make-sparse-keymap)))
(set-keymap-parent map special-mode-map)
+ (set-keymap-parent map image-map)
(define-key map "\C-c\C-c" 'image-toggle-display)
(define-key map (kbd "SPC") 'image-scroll-up)
(define-key map (kbd "S-SPC") 'image-scroll-down)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 378d138: Make image commands available in image-mode,
Lars Ingebrigtsen <=