emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Re: address@hidden: mouse-autoselect-window needs a


From: David Kastrup
Subject: Re: address@hidden: Re: address@hidden: mouse-autoselect-window needs a de lay]]
Date: Tue, 05 Sep 2006 15:12:17 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

martin rudalics <address@hidden> writes:

>> Don't (mouse-position) or (mouse-pixel-position) give the current position
>> when you install the timer?
>
> No.  I use `mouse-position' and it gives the position where the mouse
> pointer crosses the window border, in the window I move to.  I didn't
> try `mouse-pixel-position' but IMO it would be a bug if it did refer to
> another position.
>
>>>When the timer triggers I do (provided other conditions apply as well)
>>>
>>>- for a positive delay select the window,
>>
>>
>> Do we really need that option?
>
> A simple delay is standard for focus follows mouse policies.  I don't
> really want to omit that.

It is not at all standard.  For example, GNOME does not offer anything
like that in its Window Preferences.  What it _does_ offer is a dialog

Window Selection

[ ] Select windows when the mouse moves over them

    [ ] Raise selected windows after an interval
    Interval before raising: [0.0-10.0, default 0.5] seconds

Deactivating any of those lines will deactivate the following lines.
The default is "off" for all options.

I actually know of no window manager offering a delay before select.
If at all, they have delay before raise.

Raising a window is an action that changes the window configuration,
so avoiding unintentional raising is a good idea there.  The
equivalent of window raising in Emacs would probably be something like
delete-other-windows (which we certainly would not want to do) or
other window-configuration changing things.

> You can always set the delay to a very small value.  In my
> experience less than 0.2 seconds never sensibly delays selection but
> may select the window too quickly.  It depends on your mouse mileage
> though, personally I like nervous mice.

And unloaded machines and non-networked X11 connections.  But not
everybody is running Emacs on a machine of his dreams all of the time.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]