🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.emacs
Article #2182

Re: Search terminator in MicroEMACS 3.7

#2182
From: Paul Placeway
Date: Fri, 24 Oct 1986 20:12
23 lines
1404 bytes
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)
Technical Details
Message-ID: <2465@osu-eddie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!osu-eddie!paul
References: <340@xios.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!osu-eddie!paul
From: paul@osu-eddie.UUCP (Paul Placeway)
Newsgroups: net.emacs,misc.wanted,net.wanted.sources
Subject: Re: Search terminator in MicroEMACS 3.7
Message-ID: <2465@osu-eddie.UUCP>
Date: Fri, 24-Oct-86 16:12:08 EDT
Article-I.D.: osu-eddi.2465
Posted: Fri Oct 24 16:12:08 1986
Date-Received: Sat, 25-Oct-86 06:58:21 EDT
References: <340@xios.UUCP>
Reply-To: paul@osu-eddie.UUCP (Paul Placeway)
Distribution: world
Organization: The Ohio State University, CIS Dept.
Lines: 23