Hi Graeme,
One of my favorite quotes about programming (and life in general) is by Will Rogers. I'm paraphrasing a bit but it goes something like this:
"It's not what you don't know that gets you in trouble, it's what you know that ain't so."
What you said about split windows in your last reply got me to thinking. And indeed, when I have just a single window open/zoomed out, and going back and forth between buffers in that window, both the keystroke and mouse click works fine 100% of the time. Also when the windows are split, but the buffers are in the same window, it also works perfectly for both key and mouse click.
The discrepancy occurs when the buffers are in two different windows and I'm switching between them. Then I loose one mouse click for every 3 clicks consistently, although the keystroke, again works perfectly. So it is something in the code for switching windows, that causes the problem, not in my code. Could you try this on your system (switching buffers between windows) and see if it fails for you too? Thanks.
I was reluctant to try the "xretrace" code because of the warnings in the post about it being:
"beta/ use at your own risk... should still be able to save your files and restart... interferes with color modified lines".
After all, I just want to skip back and forth between 2 buffers. And I want a solid editor, I don't want to be worried about crashes, losing work or other instabilities, especially with something as trivial as buffer switching.
----
Again the split windows problem, did not occur in my macro, but in the "goback_last_buffer()" macro in the GFilemanGoback.e file that you pointed me to. If I recall correctly, this is what happened:
1. Split the window (2 windows now showing in SlickEdit)
2. Arrange the windows so that Window1 contains File1.txt
3. And Window2 contains File2.txt
I want to switch between Window1/File1.txt and Window2/File2.txt. When invoking the "goback_last_buffer()" macro in the GFilemanGoback.e file the following occurred:
4. Window1/File1.txt turned into Window1/File1.txt:1
5. Window2 now contains 2 tabs (instead of 1) with Window2/File1.txt:2 and Windows2/File2.txt
So now there are now 2 instances of File1.txt, one in each window, with a ":" and an instance number after the file name extension.
6. Switching between File1.txt and File2.txt now occurs in Window2 between File1.txt:2 and File2.txt.
I wanted switching to happen across windows between the two files. Not to create a separate file instance, and then switch between files in the same window, which is what happened with the "goback_last_buffer()" macro.
Hope this makes sense. BTW there were more files/buffers/tabs in each window when this happened, if that makes any difference.
And again this is for your information, if you wanted to investigate, don't do it for me, I'm happy with what I have.
Thanks again for your help Graeme.