From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Weird problem with mouse-autoselect-window Date: Thu, 22 Aug 2002 11:17:37 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200208221517.g7MFHbX28780@rum.cs.yale.edu> References: <87bs7wur0s.fsf@wesley.springies.com> <200208220157.g7M1vtO10543@wijiji.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030029626 31661 127.0.0.1 (22 Aug 2002 15:20:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 15:20:26 +0000 (UTC) Cc: ats@acm.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17htl3-0008EY-00 for ; Thu, 22 Aug 2002 17:20:25 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17huDy-00067r-00 for ; Thu, 22 Aug 2002 17:50:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17htm8-0006XU-00; Thu, 22 Aug 2002 11:21:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17htiQ-0006Dm-00 for emacs-devel@gnu.org; Thu, 22 Aug 2002 11:17:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17htiM-0006Ci-00 for emacs-devel@gnu.org; Thu, 22 Aug 2002 11:17:40 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17htiL-0006CM-00; Thu, 22 Aug 2002 11:17:37 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g7MFHbX28780; Thu, 22 Aug 2002 11:17:37 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6761 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6761 > This is on a Linux box under X, btw. > > If it is running GNU and Linux, please call it a GNU/Linux box. This > helps us just as fixing bugs in Emacs helps us--but it is much less > work! > > emacs -q --no-site-file > C-h v mouse-autoselect-window RET > Click on customize this variable > Toggle the value on. > Set for current session. > Move mouse over *Help* window. > Hit TAB. > > You should see "No buttons or fields found". > > When you switch frames, Emacs generates a switch-frame > event whose purpose is to wake up read_key_sequence > so it will reread the keymaps of the new frame. > Something similar needs to be done for mouse-autoselect-window. > I would guess that that mechanism either isn't happening > or is working wrong. Why is it necessary ? The select-window event is bound to handle-select-window which will do the selection (including changing the current buffer) so when we get back into read_key_sequence, the current buffer should have been properly switched already. Stefan PS: It might be different for `select-window' events that are in the middle of a key-sequence rather than at the beginning, of course, but that's not what is being discussed here.