Path: utzoo!utgpu!watmath!uunet!bu-cs!jbw From: jbw@bucsf.bu.edu (Joe Wells) Newsgroups: gnu.emacs.bug Subject: Re: 18.54.1: ESC M-0 discards the zero Message-ID: <38641@bu-cs.BU.EDU> Date: 21 Sep 89 23:46:08 GMT References: <13066.622227723@COSMOS.VLSI.CS.CMU.EDU> Sender: daemon@bu-cs.BU.EDU Distribution: gnu Organization: Boston University Computer Science Department Lines: 44 In-reply-to: Derek.Beatty@UNH.CS.CMU.EDU's message of 19 Sep 89 17:02:03 GMT In article <13066.622227723@COSMOS.VLSI.CS.CMU.EDU> Derek.Beatty@UNH.CS.CMU.EDU writes: When I hit ESC then type M-0 (that's a zero not an Oh), I get the 'Eval: ' prompt in the minibuffer. In other words, the zero of my meta-zero is discarded. I think this is wrong, because when I type ESC then M-0 it's because I'm already confused: I thought I was in incremental search and terminated it with ESC then typed M-0 in preparation for C-L to scroll point to the top of the window. Emacs shouldn't add to my confusion by silently discarding a key that I really pressed. Perhaps it should keep the zero so that I have some chance of realizing what I've done without resorting to C-H l. Or perhaps ESC M- should signal an error and ring the bell. Silently throwing away the user's keystrokes is never right. The patch I am including should fix the behaviour you noticed. However, there may be a good reason why this wasn't done before. If someone knows of such a reason, perhaps they could post it. I haven't tried this myself because I don't want to make the sysadmins angry ... recompiling Emacs takes a lot of space. -- Joe Wells jbw%bucsf.bu.edu@bu-it.bu.edu ...!harvard!bu-cs!bucsf!jbw ---------------------------------------------------------------------- *** /usr14/gnu/dist-18.55/src/keyboard.c Mon Sep 4 03:46:20 1989 --- keyboard.c Thu Sep 21 19:37:20 1989 *************** *** 1403,1408 **** } keys_prompt = 0; return i; } --- 1403,1410 ---- } keys_prompt = 0; + if (nextc >= 0) + unread_command_char = nextc; return i; }