🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2184

Re: Click to type behavior (again)

#2184
From: Todd Kaufmann
Date: Fri, 15 Feb 1991 21:46
35 lines
1996 bytes
	   I'm having trouble with epoch going into click-to-type mode.
   The symptoms are that after a while, epoch will stop switching buffers
   when I switch screens unless I click the mouse in the new screen.

I've never seen this... until yesterday.

	   My guess is that some handler is getting nulled, similar to
   the mouse problem I had (where resetting epoch::event-handler to
   event::handler would fix the mouse being ignored).  

I've had that happen before..

Since the above just happened to me, I looked in epoch-lisp/event.el.

   (assoc 'focus event::functions)
 =>
   (focus t (lambda (type new-focus-state scr)
               (and new-focus-state (select-screen scr))))

Where'd that t come from?  This is odd.  Some more browsing around event.el
shows that ignore-event will do this.  Try evaluating

   (resume-event 'focus)

And things should continue normally.  M-x display-event-status (C-z e) will
tell you if it's ignored; the first column (state) will either be
"H"andled, or "I"gnored.

Ignore-event gets called in the event::handler if an error occurred in the
event's handler function.  I can't see how an error could happen here, but
something went wrong and focus got ignored.


  -todd
Technical Details
Message-ID: <TOAD.91Feb15164645@ZEN.MT.CS.CMU.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!sdd.hp.com!caen!uwm.edu!psuvax1!rutgers!rochester!pt.cs.cmu.edu!ZEN.MT.CS.CMU.EDU!toad
References: <Feb.14.14.29.34.1991.512@morley.rutgers.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,b54294b5973e1119,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-02-15 15:46:56 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!sdd.hp.com!caen!uwm.edu!psuvax1!rutgers!rochester!pt.cs.cmu.edu!ZEN.MT.CS.CMU.EDU!toad
From: toad@CS.CMU.EDU (Todd Kaufmann)
Newsgroups: gnu.epoch.misc
Subject: Re: Click to type behavior (again)
Message-ID: <TOAD.91Feb15164645@ZEN.MT.CS.CMU.EDU>
Date: 15 Feb 91 21:46:45 GMT
References: <Feb.14.14.29.34.1991.512@morley.rutgers.edu>
Sender: toad@ZEN.MT.CS.CMU.EDU
Organization: School of Computer Science, Carnegie Mellon University
Lines: 35
In-reply-to: purtill@morley.rutgers.edu's message of 14 Feb 91 19:29:36 GMT