From xemacs-m  Wed Sep 17 08:43:35 1997
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2])
	by xemacs.org (8.8.5/8.8.5) with SMTP id IAA07841
	for <xemacs-beta@xemacs.org>; Wed, 17 Sep 1997 08:43:34 -0500 (CDT)
Received: from SCRUBBING-BUBBLES.MIT.EDU by MIT.EDU with SMTP
	id AA01319; Wed, 17 Sep 97 09:43:33 EDT
Received: by scrubbing-bubbles.MIT.EDU (8.8.5/4.7) id JAA16878; Wed, 17 Sep 1997 09:43:24 -0400 (EDT)
Date: Wed, 17 Sep 1997 09:43:24 -0400 (EDT)
Message-Id: <199709171343.JAA16878@scrubbing-bubbles.MIT.EDU>
From: David Bakhash <cadet@MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: [PATCH] `make-event' accepts arguments
In-Reply-To: <kigzppcw20p.fsf@jagor.srce.hr>
References: <kigk9gg8zp6.fsf@jagor.srce.hr>
	<199709170223.WAA20747@M66-080-21.MIT.EDU>
	<kigzppcw20p.fsf@jagor.srce.hr>
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid

Hrvoje Niksic writes:
 > Yes, that was one of my ideas, too.  However, things still don't work
 > perfectly:
 > 
 > (let ((e1 (make-event 'button-press `(channel ,(selected-frame)
 >                                       button 1 x 100 y 100)))
 >       (e2 (make-event 'button-release `(channel ,(selected-frame)
 >                                         button 1 x 100 y 100))))
 >   ;; Press the button at 100, 100
 >   (dispatch-event e1)
 >   ;; ...and release it
 >   (dispatch-event e2))
 > 
 > I would expect this to set the point at pixel-coords 100,100 -- but
 > for some reason, it doesn't happen, although the events seem correct.
 > It's worth investigating.  Bill, did you have problems with such stuff 
 > when implementing GPM?
 > 
 > OTOH, key events work perfectly:

well, I dunno.  did u look at the dispatch function?  Did you make
observations about what fields change between your make-event's
button-press-event versus the one that would normally be generated by a
button-press event?  The XEmacs event model is quite nice, but very
complex.  I think it's all over my head.  I only find the XEmacs
lisp-level events to be tractable for now (that's why I praise you for
doing the work on events.c -- something I couldn't do in a month.

anyway, I'm very behind w/ strokes right now, because of crap happening
in my life, but I'll definately get back into it, fix up my gcc so I can 
compile the newest XEmacs, and then attempt to use your patches.  I
appreciate it.

dave

