1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* binding.el: Add comment describing why C-d binds to `delete-char'.

* lisp/simple.el (delete-forward-char): Mark as interactive-only.
* src/cmds.c (delete-char): Update docstring pointing out that the
function ignores `delete-active-region' and `overwrite-mode'.
This commit is contained in:
Michal Nazarewicz 2014-03-03 22:14:11 -05:00 committed by Stefan Monnier
parent 757c70af04
commit 5b87d0d9cd
5 changed files with 47 additions and 30 deletions

View file

@ -873,6 +873,11 @@ if `inhibit-field-text-motion' is non-nil."
;; Update tutorial--default-keys if you change these.
(define-key global-map "\177" 'delete-backward-char)
;; We explicitly want C-d to use `delete-char' instead of
;; `delete-forward-char' so that it ignores `delete-active-region':
;; Most C-d users are old-timers who don't expect
;; `delete-active-region' here, while newer users who expect
;; `delete-active-region' use C-d much less.
(define-key global-map "\C-d" 'delete-char)
(define-key global-map "\C-k" 'kill-line)