From: Juri Linkov Date: Tue, 20 Apr 2021 20:04:36 +0000 (+0300) Subject: * lisp/wdired.el (wdired--self-insert): Put symbol property delete-selection. X-Git-Tag: emacs-28.0.90~2798 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee5d6ae663d9538d96c476a32b34d99c199b0c27;p=emacs.git * lisp/wdired.el (wdired--self-insert): Put symbol property delete-selection. --- diff --git a/lisp/wdired.el b/lisp/wdired.el index ff42d784e5f..05b0a0cfb2b 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -292,6 +292,8 @@ or \\[wdired-abort-changes] to abort changes"))) (call-interactively (or (if map (lookup-key map (this-command-keys))) #'self-insert-command))))) +(put 'wdired--self-insert 'delete-selection 'delete-selection-uses-region-p) + (defun wdired--before-change-fn (beg end) (save-excursion ;; Make sure to process entire lines.