aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-06-22 00:01:42 +0000
committerRichard M. Stallman2003-06-22 00:01:42 +0000
commitf1871a7dc88e35e73906c68f4e50e503311dd537 (patch)
tree55d7a5b6848ecb7a78fb4c171d0c81212675aac3
parent27a99a7c953966bab5b17dab5e5352728dc131e1 (diff)
downloademacs-f1871a7dc88e35e73906c68f4e50e503311dd537.tar.gz
emacs-f1871a7dc88e35e73906c68f4e50e503311dd537.zip
(read_key_sequence): When converting upcase fn key to
downcase, update fkey and keytran so `backspace' gets translated. (read_avail_input): Don't signal SIGHUP in batch mode.
-rw-r--r--src/keyboard.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index ad257324d89..5f747183ce6 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6718,7 +6718,12 @@ read_avail_input (expected)
6718 /* ??? Is it really right to send the signal just to this process 6718 /* ??? Is it really right to send the signal just to this process
6719 rather than to the whole process group? 6719 rather than to the whole process group?
6720 Perhaps on systems with FIONREAD Emacs is alone in its group. */ 6720 Perhaps on systems with FIONREAD Emacs is alone in its group. */
6721 kill (getpid (), SIGHUP); 6721 {
6722 if (! noninteractive)
6723 kill (getpid (), SIGHUP);
6724 else
6725 n_to_read = 0;
6726 }
6722 if (n_to_read == 0) 6727 if (n_to_read == 0)
6723 return 0; 6728 return 0;
6724 if (n_to_read > sizeof cbuf) 6729 if (n_to_read > sizeof cbuf)
@@ -9421,6 +9426,8 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
9421 9426
9422 keybuf[t - 1] = new_key; 9427 keybuf[t - 1] = new_key;
9423 mock_input = max (t, mock_input); 9428 mock_input = max (t, mock_input);
9429 fkey.start = fkey.end = KEYMAPP (fkey.map) ? 0 : bufsize + 1;
9430 keytran.start = keytran.end = KEYMAPP (keytran.map) ? 0 : bufsize + 1;
9424 9431
9425 goto replay_sequence; 9432 goto replay_sequence;
9426 } 9433 }