* lisp/delsel.el (electric-newline-and-maybe-indent): Mark it as well.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 17 Jun 2014 13:40:03 +0000 (09:40 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 17 Jun 2014 13:40:03 +0000 (09:40 -0400)
Fixes: debbugs:17737

lisp/ChangeLog
lisp/delsel.el

index 0734216..2daf277 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * delsel.el (electric-newline-and-maybe-indent): Mark it as well
+       (bug#17737).
+
 2014-06-16  Dmitry  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't fontify
index ab71e60..1ada027 100644 (file)
@@ -188,6 +188,7 @@ See `delete-selection-helper'."
 (put 'reindent-then-newline-and-indent 'delete-selection t)
 (put 'newline-and-indent 'delete-selection t)
 (put 'newline 'delete-selection t)
+(put 'electric-newline-and-maybe-indent 'delete-selection t)
 (put 'open-line 'delete-selection 'kill)
 
 ;; This is very useful for canceling a selection in the minibuffer without