* Why is C-d not bound to `delete-forward-char'?
@ 2015-01-16 22:17 Karl Fogel
2015-01-16 23:39 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Karl Fogel @ 2015-01-16 22:17 UTC (permalink / raw)
To: Emacs Development
Does anyone know why C-d is bound to `delete-char' instead of
'delete-forward-char'?
If I run "C-h k C-d", I get the help for `delete-char', which says:
| C-d runs the command delete-char (found in global-map), which is an
| interactive built-in function in `C source code'.
|
| It is bound to C-d.
|
| (delete-char N &optional KILLFLAG)
|
| Delete the following N characters (previous if N is negative).
| 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,
| e.g. because it respects values of `delete-active-region' and
| `overwrite-mode'.
According to that last paragraph, `delete-forward-char' would be preferable for interactive use, which implies that it should be on C-d instead, no?
Best,
-Karl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why is C-d not bound to `delete-forward-char'?
2015-01-16 22:17 Why is C-d not bound to `delete-forward-char'? Karl Fogel
@ 2015-01-16 23:39 ` Stefan Monnier
2015-01-17 0:06 ` Karl Fogel
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2015-01-16 23:39 UTC (permalink / raw)
To: Karl Fogel; +Cc: Emacs Development
> Does anyone know why C-d is bound to `delete-char' instead of
> 'delete-forward-char'?
Yes: because when delete-active-region was enabled by default, we
decided that C-d shouldn't delete the active region, so as to reduce the
pain of adaptation for old-timers.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why is C-d not bound to `delete-forward-char'?
2015-01-16 23:39 ` Stefan Monnier
@ 2015-01-17 0:06 ` Karl Fogel
0 siblings, 0 replies; 3+ messages in thread
From: Karl Fogel @ 2015-01-17 0:06 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Emacs Development
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Does anyone know why C-d is bound to `delete-char' instead of
>> 'delete-forward-char'?
>
>Yes: because when delete-active-region was enabled by default, we
>decided that C-d shouldn't delete the active region, so as to reduce the
>pain of adaptation for old-timers.
Thank you.
Would you like me to document that in the doc string for C-d, or would it be too distracting there?
(I think the doc string is a bit confusing in its current form, but maybe that's the lesser price here; not sure.)
-K
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-17 0:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 22:17 Why is C-d not bound to `delete-forward-char'? Karl Fogel
2015-01-16 23:39 ` Stefan Monnier
2015-01-17 0:06 ` Karl Fogel
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).