Hello Eric,
I have tracked down the cause of this pointer moving....and it is not
the function you mentioned below. I have attached the backtrace to this
email.=20
Essentially the call flow is:
speedbar-find-file -> dframe-maybee-jump-to-attached-frame ->
select-frame-set-input-focus -> set-mouse-position(#<frame 0x178ea00>
219 0)
And my frame width is 220. When I step through I see the mouse move to
the upper right corner of my emacs frame. According to the comments of
"dframe-maybee-jump-to-attached-frame", shouldn't the call to
"other-frame" not happen?? I am doing a mouse-2 click in the speedbar
window.
I would like to disable this behavior as it is driving me nuts. ;-) =20
Please let me know what you think. Thanks!
(defun dframe-maybee-jump-to-attached-frame ()
"Jump to the attached frame ONLY if this was not a mouse event."
(if (or (not (dframe-mouse-event-p last-input-event))
dframe-activity-change-focus-flag)
(progn
;(select-frame dframe-attached-frame)
(other-frame 0))))
Javier
-----Original Message-----
From: Eric M. Ludlam [mailto:eric@...
Sent: Wednesday, March 23, 2005 9:46 AM
To: Oviedo, Javier
Cc: cedet-devel@...; klaus.berndl@...
Subject: Re[5]: [CEDET-devel] Speedbar issue/question
I was hoping to study this problem in more detail but haven't had time.
Here is the function in question:
(defun speedbar-find-file-in-frame (file)
"This will load FILE into the speedbar attached frame.
If the file is being displayed in a different frame already, then raise
that frame instead."
(let* ((buff (find-file-noselect file))
(bwin (get-buffer-window buff 0)))
(if bwin
(progn
(select-window bwin)
(raise-frame (window-frame bwin)))
(if dframe-power-click
(let ((pop-up-frames t)) (select-window (display-buffer
buff)))
------>>>
(if (numberp speedbar-select-frame-method)
(other-frame speedbar-select-frame-method)
(dframe-select-attached-frame speedbar-frame))
(switch-to-buffer buff))))
<<<<------
)
Please note the lines that had been marked. If
`speedbar-select-frame-method' is a symbol, like 'attached, or anything
else for that matter, it should skip the 'other-frame' call, which does
the pointer moving stuff.
If anyone wants to debug this more, this is where you can start.
Eric
>>> "Oviedo, Javier" <joviedo@...> seems to think that:
>Hi Eric. I download your new file and byte compiled it. Unfortunately,=20
>the problem still exists.
>
>
>Javier
>
>
>
>-----Original Message-----
>From: Eric M. Ludlam [mailto:eric@...]
>Sent: Wednesday, March 16, 2005 9:18 PM
>To: Oviedo, Javier
>Cc: cedet-devel@...; klaus.berndl@...
>Subject: Re[3]: [CEDET-devel] Speedbar issue/question
>
>Hi,
>
> From this URL:
>
>http://cvs.sourceforge.net/viewcvs.py/cedet/cedet/speedbar/speedbar.el?
>r
>ev=3D1.244&view=3Dlog]
>
> This checkin:
>
>----------
>Revision 1.244 - (view) (download) (annotate) - [select for diffs] Sun
>Feb 20 19:35:11 2005 UTC (3 weeks, 3 days ago) by zappo
>Branch: MAIN
>CVS Tags: HEAD
>Changes since 1.243: +2 -5 lines
>Diff to previous 1.243
>
>(speedbar-select-frame-method): Change default to 'attached, which is=20
>what a typical single-frame user would get. Also prevents unexpected=20
>frame switching.
>----------
>
> is, I think, the end result of what I had figured out.
>
>Eric
>
>
>
>>>> "Oviedo, Javier" <joviedo@...> seems to think that:
>>Hi Eric.
>>Thanks for the quick reply. Where can I get the new file from?
>>
>>
>>Javier
>>
>>
>>
>>-----Original Message-----
>>From: Eric M. Ludlam [mailto:eric@...]
>>Sent: Tuesday, March 15, 2005 10:37 AM
>>To: Oviedo, Javier
>>Cc: cedet-devel@...; klaus.berndl@...
>>Subject: Re[1]: [CEDET-devel] Speedbar issue/question
>>
>>Hi,
>>
>> I remember that post, and tracked the issue into speedbar, and put a
>
>> fix into cedet CVS a little over a week ago. It would be nice if =20
>> you
>
>> could grab the latest dframe.el/speedbar.el and give it a try to see
>> if it fixes the problem correctly.
>>
>> My memory of this is very vague at this point. I seem to remember=20
>> that the specific action you describe did not call the heuristic =20
>> that
>
>> decides if the mouse should jump or not.
>>
>>Eric
>>
>>>>> "Oviedo, Javier" <joviedo@...> seems to think that:
>>>=20
>>>Hello everyone. I had posted the following speedbar question to=20
>>>gnu.emacs.help. I received some feedback but unfortunately it didn't=20
>>>solve my issue. Perhaps I will have better luck here. :-)
>>>
>>>I'm running cedet-1.0beta3b with ECB 2.31. I started using speedbar=20
>>>in
>
>>>the ECB directory window. I like it very much, but there is one=20
>>>really
>
>>>annoying behavior that I would like to modify:
>>>
>>>In the speedbar window I see a list of directories and files in my
>CWD.
>>>I then position the cursor over the name of the file I'd like to=20
>>>visit
>
>>>and use the mouse-2 button to visit/open that file in the main buffer
>>>window. The file opens without issue, but the mouse cursor jumps to=20
>>>the
>>
>>>upper most right corner of the current emacs frame. Please note that=20
>>>after I pressed mouse-2, I did not move the cursor from it's position
>>>over the file name in the speedbar window. In fact, what I want is=20
>>>for
>
>>>the cursor not to move at all. I'd like it to remain exactly where I=20
>>>had it when I hit mouse-2. Jumping to the upper right corner of the=20
>>>emacs frame is annoying me to no end. :-)
>>>
>>>When I posted to gnu.emacs.help I was told about=20
>>>dframe-activity-change-focus--flag, but setting this to nil or t does
>>>not have any effect on my issue. Also, I opened emacs without any=20
>>>init
>
>>>file or custom configuration(simply launched emacs.exe). I then=20
>>>started
>>
>>>speedbar and still saw the same behavior.
>>>
>>>Any help? Thoughts?=20
>>>
>>>
>>>Thanks!=20
>>>
>>>
>>>
>>>Javier
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide Read honest & candid=20
>>>reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_ide95&alloc_id=14396&opk
>>>_______________________________________________
>>>Cedet-devel mailing list
>>>Cedet-devel@...
>>>https://lists.sourceforge.net/lists/listinfo/cedet-devel
>>>
>>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide Read honest & candid=20
>reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_ide95&alloc_id=14396&opk
>_______________________________________________
>Cedet-devel mailing list
>Cedet-devel@...
>https://lists.sourceforge.net/lists/listinfo/cedet-devel
>
|