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
Essentially the call flow is:
speedbar-find-file -> dframe-maybee-jump-to-attached-frame ->
select-frame-set-input-focus -> set-mouse-position(#<frame 0x178ea00>
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
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))
From: Eric M. Ludlam [mailto:eric@...
Sent: Wednesday, March 23, 2005 9:46 AM
To: Oviedo, Javier
Cc: cedet-devel@...; klaus.berndl@...
Subject: Re: [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)))
(raise-frame (window-frame bwin)))
(let ((pop-up-frames t)) (select-window (display-buffer
(if (numberp speedbar-select-frame-method)
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.
>>> "Oviedo, Javier" <joviedo@...> seems to think that:
>Hi Eric. I download your new file and byte compiled it. Unfortunately,=20
>the problem still exists.
>From: Eric M. Ludlam [mailto:eric@...]
>Sent: Wednesday, March 16, 2005 9:18 PM
>To: Oviedo, Javier
>Cc: cedet-devel@...; klaus.berndl@...
>Subject: Re: [CEDET-devel] Speedbar issue/question
> From this URL:
> 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
>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
> is, I think, the end result of what I had figured out.
>>>> "Oviedo, Javier" <joviedo@...> seems to think that:
>>Thanks for the quick reply. Where can I get the new file from?
>>From: Eric M. Ludlam [mailto:eric@...]
>>Sent: Tuesday, March 15, 2005 10:37 AM
>>To: Oviedo, Javier
>>Cc: cedet-devel@...; klaus.berndl@...
>>Subject: Re: [CEDET-devel] Speedbar issue/question
>> 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
>> 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
>> decides if the mouse should jump or not.
>>>>> "Oviedo, Javier" <joviedo@...> seems to think that:
>>>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
>>>the ECB directory window. I like it very much, but there is one=20
>>>annoying behavior that I would like to modify:
>>>In the speedbar window I see a list of directories and files in my
>>>I then position the cursor over the name of the file I'd like to=20
>>>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
>>>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
>>>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
>>>file or custom configuration(simply launched emacs.exe). I then=20
>>>speedbar and still saw the same behavior.
>>>Any help? Thoughts?=20
>>>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.
>>>Cedet-devel mailing list
>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.
>Cedet-devel mailing list