From: Noam Postavsky Date: Sun, 3 Jul 2016 18:00:19 +0000 (-0400) Subject: Don't delete selection after indent-rigidly X-Git-Tag: emacs-26.0.90~1778 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ae89c2c99cd222239f368999cd3accb2b9a235d;p=emacs.git Don't delete selection after indent-rigidly * lisp/indent.el (indent-rigidly): Pass `deactivate-mark' as the ON-EXIT function to `set-transient-map', this prevents `delete-selection-mode' from deleting the text that was just indented (Bug #20408). --- diff --git a/lisp/indent.el b/lisp/indent.el index 0bbb5209e8a..0f6c68dd626 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -218,7 +218,7 @@ indentation by specifying a large negative ARG." (message (substitute-command-keys "Indent region with \\\\[indent-rigidly-left], \\[indent-rigidly-right], \\[indent-rigidly-left-to-tab-stop], or \\[indent-rigidly-right-to-tab-stop].")) - (set-transient-map indent-rigidly-map t)) + (set-transient-map indent-rigidly-map t #'deactivate-mark)) (save-excursion (goto-char end) (setq end (point-marker))