summaryrefslogtreecommitdiff
path: root/src/cmds.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2014-03-03 22:14:11 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2014-03-03 22:14:11 -0500
commit5b87d0d9cd65911aca0b99a44bc5f79c44938753 (patch)
treef9acca1539bc7143620f5588c1c0da13f51d89fc /src/cmds.c
parent757c70af04476ffdaf24cee8d0d2ecd175635aeb (diff)
downloademacs-5b87d0d9cd65911aca0b99a44bc5f79c44938753.tar.gz
* 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'.
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmds.c b/src/cmds.c
index fdc3fcac281..7459908828d 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -229,7 +229,8 @@ Optional second arg KILLFLAG non-nil means kill instead (save in kill ring).
Interactively, N is the prefix arg, and KILLFLAG is set if
N was explicitly specified.
-The command `delete-forward-char' is preferable for interactive use. */)
+The command `delete-forward-char' is preferable for interactive use, e.g.
+because it respects values of `delete-active-region' and `overwrite-mode'. */)
(Lisp_Object n, Lisp_Object killflag)
{
EMACS_INT pos;