all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [rudalics@gmx.at: Re: [simon.marshall@misys.com:	mouse-autoselect-window needs a	de lay]]
Date: Tue, 05 Sep 2006 14:53:57 +0200	[thread overview]
Message-ID: <44FD7365.10901@gmx.at> (raw)
In-Reply-To: <m3k64iinjs.fsf@kfs-l.imdomain.dk>

 > 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.

 >>- for a negative delay check whether mouse-position is the same as the
 >>  last time I checked.
 >
 >
 > That's what I think should be the default ... don't select the window until
 > the mouse movement stops.  But detect that quickly!

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.

 > Can't you just use a (fixed) 0.1 second timer the first time ?

It's been one of my first attempts to deal with the problem (and I used
exactly 0.1 seconds IIRC).  It didn't work reliably though, and I didn't
try to find out why.  Maybe another timer ...

 >>Currently, there is only one delay.  Do you think I should use two
 >>different delays?
 >
 >
 > No.  One timer "mouse-movement-stopped-timeout" would be ok.
 >

What about a cons with the delay in the car and a boolean for
"dont-select-while-mouse-moves" in the cdr?

  parent reply	other threads:[~2006-09-05 12:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-03 15:17 [rudalics@gmx.at: Re: [simon.marshall@misys.com: mouse-autoselect-window needs a de lay]] Richard Stallman
2006-09-03 16:02 ` David Kastrup
2006-09-03 16:37   ` David Kastrup
2006-09-04  9:16   ` martin rudalics
2006-09-04 14:05     ` Kim F. Storm
2006-09-05  9:21       ` martin rudalics
2006-09-05 11:02         ` Kim F. Storm
2006-09-05 11:06           ` David Kastrup
2006-09-05 12:53           ` martin rudalics [this message]
2006-09-05 13:12             ` David Kastrup
2006-09-05 15:59               ` martin rudalics
2006-09-04 17:18     ` Richard Stallman
2006-09-03 17:05 ` Chong Yidong
2006-09-04  9:27   ` martin rudalics
2006-09-04 14:07     ` Kim F. Storm
2006-09-03 21:43 ` Kim F. Storm
2006-09-05 15:20 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44FD7365.10901@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.