From: martin rudalics <rudalics@gmx.at>
Cc: "'cyd@stupidchicken.com'" <cyd@stupidchicken.com>,
"'rms@gnu.org'" <rms@gnu.org>,
"'emacs-devel@gnu.org'" <emacs-devel@gnu.org>
Subject: Re: [simon.marshall@misys.com: mouse-autoselect-window needs a de lay]
Date: Wed, 05 Jul 2006 10:26:35 +0200 [thread overview]
Message-ID: <44AB77BB.4020700@gmx.at> (raw)
In-Reply-To: <81CCA6588E60BB42BE68BD029ED4826007E977DA@wimex2.wim.midas-kapiti.com>
Hi Simon, thanks for testing this.
> - A value of nil for mouse-autoselect-window doesn't seem to stop it
> selecting! I think the xterm.c check should be for
> !NILP(mouse_autoselect_window) now.
Correct. It should have been done as in w32term.
> In fact, setting mouse-autoselect-window to a number, doing ESC C-x on the
> defun of mouse-autoselect-window-cancel or mouse-autoselect-window-start,
> and moving the mouse is enough to trigger this abort even with one window.
I don't get an abort but I'm 100% busy when edebugging this. Hardly an
improvement.
> - I think the uncertainty over the actual delay is more than a little odd.
> It is more than frustrating to have to wait perhaps twice the amount of time
> (in fact the doc string says the amount of time is any multiple of
> mouse-autoselect-window). Perhaps the problem is that
> mouse_autoselect_window_function is run even if the window has not changed?
> (Currently it is run if mouse_autoselect_window is a number, regardless of
> whether the window has changed or not.) If it were only to run if the
> window has changed, perhaps mouse-autoselect-window-start can set
> mouse-autoselect-window-position to (mouse-position)?
That was my initial approach and it worked pretty well. But (re-)read
my previous observation with respect to this:
>> 1. Suppose I have two windows - SW is the selected one and UW the
>> unselected one. I move the mouse to the menubar as described in Simon's
>> original scenario. UW should not be selected here. However, I then
>> change my mind and move the mouse to UW. I suppose that UW should be
>> selected now - agreed? (It's important to clear this since the current
>> autoselect mechanism triggers iff the mouse moves from the selected
>> window to an unselected one.)
With other words, once I leave a window with the mouse and move to the
menubar, I won't autselect another window before I cross a window border
again. I was afraid that some people would find this counterintuitive.
> Unfortunately, it's a little difficult for me to play around with the lisp
> code - I can only avoid an abort by make/make recompile/make each time.
>
> If you can work out how to make it stable I can help test etc. Simon.
Probably, doing this in `handle-select-window' is more practical indeed.
(In case of doubt, Stefan's always right.) Anyway, I'll try to find a
more practicable solution. Thanks again for the report. martin.
next prev parent reply other threads:[~2006-07-05 8:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 16:17 [simon.marshall@misys.com: mouse-autoselect-window needs a de lay] Marshall, Simon
2006-07-05 8:26 ` martin rudalics [this message]
2006-07-05 12:19 ` martin rudalics
-- strict thread matches above, loose matches on Subject: below --
2006-07-06 11:43 Marshall, Simon
2006-07-07 9:35 ` martin rudalics
2006-07-17 14:07 Marshall, Simon
2006-07-17 15:52 ` martin rudalics
2006-07-17 16:18 Marshall, Simon
2006-07-17 17:59 ` martin rudalics
2006-07-18 13:37 ` Richard Stallman
2006-07-19 10:05 ` martin rudalics
2006-08-28 5:57 ` martin rudalics
2006-07-18 11:21 Marshall, Simon
2006-07-19 9:56 ` martin rudalics
2006-07-19 11:00 ` Kim F. Storm
2006-07-19 12:35 ` martin rudalics
2006-07-19 11:14 Marshall, Simon
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=44AB77BB.4020700@gmx.at \
--to=rudalics@gmx.at \
--cc=cyd@stupidchicken.com \
--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.