From 9ae89c2c99cd222239f368999cd3accb2b9a235d Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 3 Jul 2016 14:00:19 -0400 Subject: [PATCH] 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). --- lisp/indent.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2