diff options
author | Noam Postavsky <npostavs@gmail.com> | 2016-07-03 14:00:19 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2016-08-06 16:16:02 -0400 |
commit | 9ae89c2c99cd222239f368999cd3accb2b9a235d (patch) | |
tree | e769a6284e644a7debf9393a10eeccd3804f23cb /lisp/indent.el | |
parent | 031af49e74195ed1645b53dca741fff8a8411a08 (diff) | |
download | emacs-9ae89c2c99cd222239f368999cd3accb2b9a235d.tar.gz |
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).
Diffstat (limited to 'lisp/indent.el')
-rw-r--r-- | lisp/indent.el | 2 |
1 files changed, 1 insertions, 1 deletions
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-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 (goto-char end) (setq end (point-marker)) |