🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1942

How to abort I-search on window focus change

#1942
From: Bob Doolittle
Date: Tue, 23 Jul 1991 15:15
28 lines
1726 bytes
I quite often have two epoch screens and while doing an I-search in one
screen absent-mindedly move my mouse cursor into the other and type
something, expecting it to be inserted in the text.  Instead, it winds up
continuing my search.  Or, I'll sometimes issue a command intended for the
new screen, which is worse yet, because instead of terminating my I-search
where it was in the first screen, it aborts the I-search, yanking my point
back to the start of the search, which is hardly ever what I wanted.

I've been trying to modify my epoch behavior so that when a new screen is
selected any outstanding I-search is terminated, but so far haven't had any
luck.  I *think* the best way to do what I want is by changing the focus
handler so that when focus is changed into a new screen, the screen is
selected and any searches are terminated.  I've tried doing this via the
*select-screen-hook*, but I must not be doing it right because my
auto-focus behavior changes...

I'd be grateful if somebody could offer a suggestion (or elisp code!) as to
how to do this.

Thanks,
	Bob

--------
Bob Doolittle
Thinking Machines Corporation
rad@think.com
(617)234-2734
Technical Details
Message-ID: <9107231515.AA02379@avenger.think.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!think.com!rad

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,324ac71c69a2b7d,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-07-23 13:56:52 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!think.com!rad
From: rad@think.com (Bob Doolittle)
Newsgroups: gnu.epoch.misc
Subject: How to abort I-search on window focus change
Message-ID: <9107231515.AA02379@avenger.think.com>
Date: 23 Jul 91 15:15:20 GMT
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 28