From b28df58ce5da592a41c23a1563fd68446ed80aa4 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 18 Feb 2014 13:14:36 -0500 Subject: * lisp/delsel.el (delete-char): Restore incorrectly erased property. Fixes: debbugs:16795 --- lisp/delsel.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lisp/delsel.el') 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) -- cgit v1.2.3