Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Search terminator in MicroEMACS 3.7

0 views
Skip to first unread message

Greg Franks

unread,
Oct 21, 1986, 5:05:57 PM10/21/86
to
Good Day!

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? I have set up my terminal as a
vt220, so I am forced to type <ctrl-3> for <esc>. I would rather define
it to something easier to type (like <function-11>).

Thanks in advance.
Greg Franks

Paul Placeway

unread,
Oct 24, 1986, 4:12:08 PM10/24/86
to
In article <3...@xios.UUCP> gr...@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
pa...@ohio-state.arpa (CSNet & ARPA)
...!cbosgd!osu-eddie!paul (UUCP)

0 new messages