[misc.wanted] Search terminator in MicroEMACS 3.7

paul@osu-eddie.UUCP (Paul Placeway) (10/24/86)

In article <340@xios.UUCP> greg@xios.UUCP (Greg Franks) writes:
>Has anyone out in net land implemented the capability of mapping the
>terminator (<esc>) in search and replace, and the control characters in
>incremental search, in MicroEMACS 3.7? ...

Yes, it's quite easy, although in a strange place.  To change the things
in the file search.c, in the routine readpattern(), (in 3.7 NOT i, line 255)
change the line that reads:

<	s = mlreplyt(tpat, tpat, NPAT, 27);  /* Read pattern */

to:

>	s = mlreplyt(tpat, tpat, NPAT, '\n');  /* Read pattern (PWP: was 27) */


in iseach.c, change the #define for IS_QUIT to whatever you like
(0x1B is ESC).

			-- Paul Placeway
			   The Ohio State University CIS-CF
			   paul@ohio-state.arpa (CSNet & ARPA)
			   ...!cbosgd!osu-eddie!paul (UUCP)