summaryrefslogtreecommitdiff
path: root/lisp/delsel.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/delsel.el')
-rw-r--r--lisp/delsel.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/delsel.el b/lisp/delsel.el
index 92f60c8786..ab71e60644 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -181,6 +181,9 @@ See `delete-selection-helper'."
(put 'yank 'delete-selection 'yank)
(put 'clipboard-yank 'delete-selection 'yank)
(put 'insert-register 'delete-selection t)
+;; delete-backward-char and delete-forward-char already delete the selection by
+;; default, but not delete-char.
+(put 'delete-char 'delete-selection 'supersede)
(put 'reindent-then-newline-and-indent 'delete-selection t)
(put 'newline-and-indent 'delete-selection t)