Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.emacs Subject: Re: Early experience with MicroEMACS 3.9 Message-ID: <6902@steinmetz.steinmetz.UUCP> Date: Wed, 5-Aug-87 10:27:10 EDT Article-I.D.: steinmet.6902 Posted: Wed Aug 5 10:27:10 1987 Date-Received: Sat, 8-Aug-87 00:42:03 EDT References: <6867@steinmetz.steinmetz.UUCP> <4916@j.cc.purdue.edu> Reply-To: davidsen@kbsvax.steinmetz.UUCP (William E. Davidsen Jr) Organization: General Electric CRD, Schenectady, NY Lines: 32 Keywords: emacs, return I offer this enhancement to memacs 3.9, courtesy of Michael Tiemann. It allows entry of RETURN in command strings, most commonly search strings. memacs will allow you to enter a RETURN (^Q^M) in text but not commands. In procedure getstring, file input.c there is a comment /* if it is a , change it to a */ followed by the line: if (c == (CNTL | 0x4d)) It may be changed to: if (c == (CNTL | 0x4d) && !quotef) which then allows you to enter a RETURN in a search or replace string. I admit that I would prefer having the search string terminator be a by default and quote the on those rare occasions when I want them. My RETURN key is easier to find than ESC. Since getstring() accepts a terminating character, I may change the call, but admit that it's a matter of taste, not a bug. How about a variable to define the search terminator character ($stchar or something)? Two minor points on ANSI keyboard sequences. memacs 3.9 does accept them. When I fixed 3.8i I put the test earlier in getcmd() to avoid checking for lowercase and control characters before checking for the '[' character. I also added a define to estruct.h called KBANSI and set that to control the use of the ANSI code. For the unix-pc, I also added KBUNIXPC, SPEC1 and SPEC2 for the key sequences which start with ESC-[O (that's oh) and ESC-[N. Please don't flame me if the N is wrong, I don't have the code here. -- bill davidsen (wedu@ge-crd.arpa) {chinet | philabs | sesimo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me