unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "'bob@rattlesnake.com'" <bob@rattlesnake.com>,
	"'Emacs Developers \(emacs-devel@gnu.org\)'"
	<emacs-devel@gnu.org>
Subject: Re: [simon.marshall@bogus.example.com: mouse-autoselect-window ne eds a delay]
Date: Tue, 04 Jul 2006 12:15:55 -0400	[thread overview]
Message-ID: <jwvfyhhnynb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <81CCA6588E60BB42BE68BD029ED4826007B77E4E@wimex2.wim.midas-kapiti.com> (Simon Marshall's message of "Wed, 28 Jun 2006 10:11:09 +0100")

> OTOH, I use the menu bar if (a) I happen to be holding the mouse, (b) I
> can't remember the key binding, or (c) there isn't a key binding.  My report
> was pointing out a problem with mouse-autoselect-window when used with split
> windows and the menu or tool bar.  Given that you don't use the menu or tool
> bar, ...

I agree with you that it's a problem.  The same problem appears on Mac OS
X if you want to use focus-follows-mouse because Mac OS X's window system
uses a single menu-bar shared between all applications.  I don't know how
they solve it, but I know how X11 and w32 solve it: have each frame carry
its own menu-bar.

And that's indeed what I do here: I use C-down-mouse-3 to get the menu-bar
at point rather than having to move the mouse to the top of the frame.

Now, I agree that it only provides a workaround rather than a fix, but some
people (e.g. myself) may prefer this workaround rather than the
delayed-selection you propose.

BTW, I believe that you can implement a form of delayed-selection without
any of the heavy hacking mentioned in this thread.  Basically: change
`handle-select-window' such that it doesn't immediately selects the window
but instead fires a timer (and kills any still pending delayed-selection
timer).  Additionally to the timer, it could add a pre-command-hook so that
hitting a key forces the selection to be done immediately.  All in elisp.


        Stefan

  reply	other threads:[~2006-07-04 16:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28  9:11 [simon.marshall@bogus.example.com: mouse-autoselect-window ne eds a delay] Marshall, Simon
2006-07-04 16:15 ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-27  8:30 Marshall, Simon
2006-06-27 11:19 ` Robert J. Chassell

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvfyhhnynb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=bob@rattlesnake.com \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).