[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: Bind backspace and delete like DEL in view-mode
From: |
Kai Großjohann |
Subject: |
Re: Proposal: Bind backspace and delete like DEL in view-mode |
Date: |
Fri, 28 Dec 2001 22:25:30 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) |
address@hidden (Kim F. Storm) writes:
> Basically, I still feel that when emacs prints a certain name for an
> event, then it should be possible to use that same name when making a
> binding for that event.
Of course, my suggestion is to advise people to use the kbd syntax,
as it gives what you want.
Please note that using the non-kbd syntax already requires some
knowledge. In particular, when Emacs 20 prints "C-f1" you have to
write [C-f1] in define-key but when Emacs 20 prints "C-a" you have to
write "\C-a" or [?\C-a] in define-key. (Emacs 21 prints "<C-f1>" and
"C-a" so the presence of the angle brackets is some indication. But
it's still a lot easier to just copy the string that Emacs 21 prints,
verbatim, to kbd.)
I strongly believe that the kbd syntax should be somehow default.
For example, define-key could look whether the key definition is a
string, and if so, it could look for \C-x and suchlike constructs in
it. If none are present, it could hand the string to kbd and use the
result. I'm not sure if this is feasible.
But I am convinced that the kbd syntax is the best syntax to use for
newbies, because it is (since Emacs 21) exactly equal to the printout
from C-h c, C-h l, C-h k and friends!
kai
--
Simplification good! Oversimplification bad! (Larry Wall)
- Re: Proposal: Bind backspace and delete like DEL in view-mode, (continued)
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Richard Stallman, 2001/12/27
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kim F. Storm, 2001/12/27
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Richard Stallman, 2001/12/28
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kim F. Storm, 2001/12/28
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kai Großjohann, 2001/12/29
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Richard Stallman, 2001/12/29
- Re: Proposal: Bind backspace and delete like DEL in view-mode,
Kai Großjohann <=
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kim F. Storm, 2001/12/28
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Miles Bader, 2001/12/28
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kai Großjohann, 2001/12/29
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kim F. Storm, 2001/12/29
- Re: Proposal: Bind backspace and delete like DEL in view-mode, Kai Großjohann, 2001/12/29