>>>> "Hrvoje" == Hrvoje Niksic
<hniksic(a)srce.hr> writes:
Hrvoje>
Hrvoje> Ben Wing <ben(a)666.com> writes:
> This business of binding focus follows mouse to nil and then
calling
> sit-for 0 is really really evil. I think the correct solution is to
> make a new command focus-on-frame, somewhat analogous to
> switch-to-buffer, that directly changes the window manager's focus.
Hrvoje>
Hrvoje> Maybe `set-frame-focus' would be a better name.
I can do this. I assume Ben meant a C primitive, not a lisp function
using the same bind focus-follows-mouse and sit-for 0 hack. This
should be easy, and I will clean up those messy externs while I'm at
it. Then I'll update the docs not to mention that abomination.
BTW Hrvoje, thanks for cleaning up my docs patch.
> Also, do there exist forms save-selected-frame and
> with-selected-frame? If not, there should be.
Hrvoje>
Hrvoje> I can code and document these.
OK. Ben do you intend these to just be macros using select-frame and
unwind-protect?
> Also, focus-follows-mouse needs to be a console property instead
of
> just a simple variable.
Hrvoje>
Hrvoje> Oops! Yes, you are right. Should we make it a console method, and
Hrvoje> use the magic symbol stuff for compatibility? Or, should we make it a
Hrvoje> console-local variable, which is kludgier but creates less problems?
Hrvoje>
> Also, the default value of focus-follows-mouse should be set
> according to the window manager's focus policy. This might entail
> some special case code for particular window managers (each of which
> has their own protocol for obtaining this property), with a default
> value of nil under Unix and true under Windows.
Hrvoje>
Hrvoje> Why not the opposite -- nil under Windows, and true under Unix?
OK, but I have no clue how to do these last two....