* [C-delete] - should it not be backward-kill-word
@ 2006-07-04 21:44 Lennart Borgman
2006-07-04 21:50 ` Drew Adams
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Lennart Borgman @ 2006-07-04 21:44 UTC (permalink / raw
On w32 it looks like it is instead kill-word. [C-backspace] is wrong the
other way.
I wrote this little test to check if key bindings are the default
specified in bindings.el:
(with-temp-buffer
(insert-file (locate-library "bindings.el"))
(let ((rdk)
(key)
(fun))
(while (condition-case err
(setq rdk (read (current-buffer)))
(error nil))
(setq key nil)
(cond ((and (eq (nth 0 rdk) 'define-key)
(eq (nth 1 rdk) 'global-map))
(setq key (nth 2 rdk))
(setq fun (nth 3 rdk))
)
((eq (nth 0 rdk) 'global-set-key)
(setq key (nth 1 rdk))
(setq fun (nth 2 rdk))
))
(when key
(assert (eq (nth 0 fun) 'quote))
(setq fun (nth 1 fun))
(unless (or (eq (key-binding key) fun)
(eq (key-binding key) (command-remapping fun)))
(message "from bindings.el: k=%s f=%s, but key-binding=%s" key
fun (key-binding key)))
))))
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [C-delete] - should it not be backward-kill-word
2006-07-04 21:44 [C-delete] - should it not be backward-kill-word Lennart Borgman
@ 2006-07-04 21:50 ` Drew Adams
2006-07-05 2:04 ` Johan Bockgård
2006-07-05 3:30 ` Eli Zaretskii
2 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2006-07-04 21:50 UTC (permalink / raw
On w32 it looks like it is instead kill-word.
I see that also.
In Emacs 20, it is backward-kill-word.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [C-delete] - should it not be backward-kill-word
2006-07-04 21:44 [C-delete] - should it not be backward-kill-word Lennart Borgman
2006-07-04 21:50 ` Drew Adams
@ 2006-07-05 2:04 ` Johan Bockgård
2006-07-05 3:30 ` Eli Zaretskii
2 siblings, 0 replies; 8+ messages in thread
From: Johan Bockgård @ 2006-07-05 2:04 UTC (permalink / raw
It's a feature.
C-h v normal-erase-is-backspace
--
Johan Bockgård
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [C-delete] - should it not be backward-kill-word
2006-07-04 21:44 [C-delete] - should it not be backward-kill-word Lennart Borgman
2006-07-04 21:50 ` Drew Adams
2006-07-05 2:04 ` Johan Bockgård
@ 2006-07-05 3:30 ` Eli Zaretskii
2006-07-05 4:16 ` Lennart Borgman
2 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2006-07-05 3:30 UTC (permalink / raw
Cc: emacs-devel
> Date: Tue, 04 Jul 2006 23:44:05 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
>
> On w32 it looks like it is instead kill-word. [C-backspace] is wrong the
> other way.
??? Do you mean you want C-delete to delete _backwards_?
`delete' is not DEL; the latter is what `backspace' does on a Windows
keyboard. `delete' deletes forward; I think users will crucify us if
we make it delete backwards.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [C-delete] - should it not be backward-kill-word
2006-07-05 3:30 ` Eli Zaretskii
@ 2006-07-05 4:16 ` Lennart Borgman
2006-07-05 4:25 ` Miles Bader
0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2006-07-05 4:16 UTC (permalink / raw
Cc: emacs-devel
Eli Zaretskii wrote:
>> Date: Tue, 04 Jul 2006 23:44:05 +0200
>> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
>>
>> On w32 it looks like it is instead kill-word. [C-backspace] is wrong the
>> other way.
>>
>
> ??? Do you mean you want C-delete to delete _backwards_?
>
> `delete' is not DEL; the latter is what `backspace' does on a Windows
> keyboard. `delete' deletes forward; I think users will crucify us if
> we make it delete backwards.
>
I do not want it, but these two lines in bindings.el seems to want it:
(global-set-key [C-delete] 'backward-kill-word)
(global-set-key [C-backspace] 'kill-word)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [C-delete] - should it not be backward-kill-word
2006-07-05 4:16 ` Lennart Borgman
@ 2006-07-05 4:25 ` Miles Bader
2006-07-05 10:29 ` Mathias Dahl
2006-07-06 13:32 ` Richard Stallman
0 siblings, 2 replies; 8+ messages in thread
From: Miles Bader @ 2006-07-05 4:25 UTC (permalink / raw
Cc: Eli Zaretskii, emacs-devel
Lennart Borgman <lennart.borgman.073@student.lu.se> writes:
> I do not want it, but these two lines in bindings.el seems to want it:
>
> (global-set-key [C-delete] 'backward-kill-word)
> (global-set-key [C-backspace] 'kill-word)
How odd ... those bindings seem obviously wrong, and indeed, are
apparently getting overridden by something, as the bindings actually in
_effect_ are correct -- using "emacs -Q", I see that:
<C-backspace> runs the command backward-kill-word
<C-delete> runs the command kill-word
-Miles
--
`Suppose Korea goes to the World Cup final against Japan and wins,' Moon said.
`All the past could be forgiven.' [NYT]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [C-delete] - should it not be backward-kill-word
2006-07-05 4:25 ` Miles Bader
@ 2006-07-05 10:29 ` Mathias Dahl
2006-07-06 13:32 ` Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: Mathias Dahl @ 2006-07-05 10:29 UTC (permalink / raw
Cc: Lennart Borgman, Eli Zaretskii, emacs-devel
> How odd ... those bindings seem obviously wrong, and indeed, are
> apparently getting overridden by something, as the bindings actually in
> _effect_ are correct -- using "emacs -Q", I see that:
>
> <C-backspace> runs the command backward-kill-word
> <C-delete> runs the command kill-word
I get the same as you.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [C-delete] - should it not be backward-kill-word
2006-07-05 4:25 ` Miles Bader
2006-07-05 10:29 ` Mathias Dahl
@ 2006-07-06 13:32 ` Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2006-07-06 13:32 UTC (permalink / raw
Cc: lennart.borgman.073, eliz, emacs-devel
How odd ... those bindings seem obviously wrong, and indeed, are
apparently getting overridden by something, as the bindings actually in
_effect_ are correct -- using "emacs -Q", I see that:
<C-backspace> runs the command backward-kill-word
<C-delete> runs the command kill-word
I think this is due to the automatic decision of which key
is DEL.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-07-06 13:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 21:44 [C-delete] - should it not be backward-kill-word Lennart Borgman
2006-07-04 21:50 ` Drew Adams
2006-07-05 2:04 ` Johan Bockgård
2006-07-05 3:30 ` Eli Zaretskii
2006-07-05 4:16 ` Lennart Borgman
2006-07-05 4:25 ` Miles Bader
2006-07-05 10:29 ` Mathias Dahl
2006-07-06 13:32 ` Richard Stallman
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).