all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org, gerd@gnu.org
Subject: Re: x-autoselect-window
Date: Sun, 17 Feb 2002 09:49:14 -0700 (MST)	[thread overview]
Message-ID: <200202171649.g1HGnEa10350@aztec.santafe.edu> (raw)
In-Reply-To: <2427-Sat16Feb2002175432+0200-eliz@is.elta.co.il>

	I think that a call to Fselect_window is not enough to cause the
	relevant parts of redisplay to run, since nothing really changes
	on the screen.

I suspect that nothing calls redisplay.  It doesn't matter whether
anything has changed in the text if redisplay is not called.

This makes me worry: is Fselect_window being called from handling of
the X event, in or called from XTread_socket?  That is probably not
safe.  Calling redisplay there is certainly not safe, since redisplay
can run Lisp code.

The correct way to handle this is to generate a special input event
analogous to the switch-frame event, as a list which contains the
window.  Then that event can be bound to a command that calls
select-window.

This will also have the effect of making redisplay happen
when that command returns to the main loop.

      - I don't understand why does the test for calling Fselect_window
	insist on comparing the window, where the mouse pointer is, with
	the last window where we saw the mouse pointer.

So that jiggling the mouse will not switch windows.

      - Finally, the name x-autoselect-window seems unnecessarily
	X-specific.  Since the goal is to support this not only on X, I
	wonder whether we should have a more neutral name, like
	mouse-autoselect-window or something.

Yes, that is right.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


      parent reply	other threads:[~2002-02-17 16:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-16 15:54 x-autoselect-window Eli Zaretskii
2002-02-16 17:36 ` x-autoselect-window Gerd Moellmann
2002-02-16 17:57   ` x-autoselect-window Eli Zaretskii
2002-02-16 18:25     ` x-autoselect-window Gerd Moellmann
2002-02-16 19:10       ` x-autoselect-window Eli Zaretskii
2002-02-16 19:42         ` x-autoselect-window Gerd Moellmann
2002-02-19  6:36           ` x-autoselect-window Richard Stallman
2002-02-19  9:49             ` x-autoselect-window Gerd Moellmann
2002-02-20 22:12               ` x-autoselect-window Richard Stallman
2002-02-16 18:14 ` x-autoselect-window Pavel Janík
2002-02-16 19:16   ` x-autoselect-window Gerd Moellmann
2002-02-16 20:03     ` x-autoselect-window Eli Zaretskii
2002-02-16 20:36       ` x-autoselect-window Gerd Moellmann
2002-02-16 19:25   ` x-autoselect-window Eli Zaretskii
2002-02-17 16:49 ` Richard Stallman [this message]

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=200202171649.g1HGnEa10350@aztec.santafe.edu \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=gerd@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.