Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Insure gimp-space respects delete-selection-mode

  • Loading branch information...
commit d2f45eba507c1613c646031965804227b267b43c 1 parent 2c211d6
@bgoodr bgoodr authored committed
Showing with 9 additions and 1 deletion.
  1. +9 −1 gimp-mode.el
View
10 gimp-mode.el
@@ -724,9 +724,17 @@ buffer."
(t
(if gimp-just-one-space
(just-one-space n)
- (self-insert-command n))
+ ;; Call the self-insert-command to give pre-command-hook's a chance
+ ;; to operate (such as `delete-selection-mode'). See also the
+ ;; setting for 'delete-selection property later on:
+ (call-interactively 'self-insert-command))
(gimp-echo))))
+;; Notify delete-selection-mode that gimp-space should act like what a space
+;; event would do, that is, if/when delete-selection-mode is activated by the
+;; user:
+(put 'gimp-space 'delete-selection t)
+
;;;; Set up the modes
(define-derived-mode gimp-mode scheme-mode "GIMP mode"
"Mode for editing script-fu and interacting with an inferior gimp process."
Please sign in to comment.
Something went wrong with that request. Please try again.