Commit 9ae89c2c authored by Noam Postavsky's avatar Noam Postavsky
Browse files

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).
parent 031af49e
...@@ -218,7 +218,7 @@ indentation by specifying a large negative ARG." ...@@ -218,7 +218,7 @@ indentation by specifying a large negative ARG."
(message (message
(substitute-command-keys (substitute-command-keys
"Indent region with \\<indent-rigidly-map>\\[indent-rigidly-left], \\[indent-rigidly-right], \\[indent-rigidly-left-to-tab-stop], or \\[indent-rigidly-right-to-tab-stop].")) "Indent region with \\<indent-rigidly-map>\\[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 (save-excursion
(goto-char end) (goto-char end)
(setq end (point-marker)) (setq end (point-marker))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment