From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: x-autoselect-window Date: Sun, 17 Feb 2002 09:49:14 -0700 (MST) Message-ID: <200202171649.g1HGnEa10350@aztec.santafe.edu> References: <2427-Sat16Feb2002175432+0200-eliz@is.elta.co.il> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1013965526 11585 195.204.10.66 (17 Feb 2002 17:05:26 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 17 Feb 2002 17:05:26 GMT Cc: emacs-devel@gnu.org, gerd@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16cUkf-00030l-00 for ; Sun, 17 Feb 2002 18:05:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16cUXs-00025y-00; Sun, 17 Feb 2002 11:52:12 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16cUV1-0001jo-00; Sun, 17 Feb 2002 11:49:15 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g1HGnFu12143; Sun, 17 Feb 2002 09:49:15 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g1HGnEa10350; Sun, 17 Feb 2002 09:49:14 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: eliz@is.elta.co.il In-reply-to: <2427-Sat16Feb2002175432+0200-eliz@is.elta.co.il> Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1264 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1264 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