[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: S-backspace
From: |
Richard Stallman |
Subject: |
Re: S-backspace |
Date: |
Sat, 21 Jun 2003 23:01:14 -0400 |
It would be nice if <S-backspace> was bound to the same function as
<backspace>.
When i type in all upper-case letters (e.g. some macro name) i often press
<S-backspace> to fix a typo, not <backspace>. I think it would be a sane
default
binding.
When an upper case function key character has no binding, Emacs looks
for a binding for the corresponding unshifted character. However,
there was a bug in the case of backspace.
This patch seems to fix it. But I am not sure it is right.
The meaning of the start and end fields in a keyremap are
not documented and I am not sure what is the right thing to do
to them here.
Stefan, could you check this is correct, and document those fields?
Index: keyboard.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/keyboard.c,v
retrieving revision 1.751
diff -c -c -r1.751 keyboard.c
*** keyboard.c 15 Jun 2003 21:46:53 -0000 1.751
--- keyboard.c 21 Jun 2003 23:58:49 -0000
***************
*** 9421,9426 ****
--- 9426,9433 ----
keybuf[t - 1] = new_key;
mock_input = max (t, mock_input);
+ fkey.start = fkey.end = KEYMAPP (fkey.map) ? 0 : bufsize + 1;
+ keytran.start = keytran.end = KEYMAPP (keytran.map) ? 0 : bufsize
+ 1;
goto replay_sequence;
}