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."
"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))
(goto-char end)
(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