changeset 51635:dec942028211

(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.
author Richard M. Stallman <rms@gnu.org>
date Sun, 22 Jun 2003 00:01:42 +0000
parents 920182384112
children 758b45c47650
files src/keyboard.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Jun 21 23:59:13 2003 +0000
+++ b/src/keyboard.c	Sun Jun 22 00:01:42 2003 +0000
@@ -6718,7 +6718,12 @@
 	/* ??? Is it really right to send the signal just to this process
 	   rather than to the whole process group?
 	   Perhaps on systems with FIONREAD Emacs is alone in its group.  */
-	kill (getpid (), SIGHUP);
+	{
+	  if (! noninteractive)
+	    kill (getpid (), SIGHUP);
+	  else
+	    n_to_read = 0;
+	}
       if (n_to_read == 0)
 	return 0;
       if (n_to_read > sizeof cbuf)
@@ -9421,6 +9426,8 @@
 
 	      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;
 	    }