From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Weird problem with mouse-autoselect-window Date: Sat, 24 Aug 2002 06:11:20 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208241211.g7OCBKc11741@wijiji.santafe.edu> References: <87bs7wur0s.fsf@wesley.springies.com> <200208220157.g7M1vtO10543@wijiji.santafe.edu> <200208221517.g7MFHbX28780@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030191151 21057 127.0.0.1 (24 Aug 2002 12:12:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 24 Aug 2002 12:12:31 +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 17iZmH-0005TW-00 for ; Sat, 24 Aug 2002 14:12:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17iaG8-0001C0-00 for ; Sat, 24 Aug 2002 14:43:20 +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 17iZnR-0000h0-00; Sat, 24 Aug 2002 08:13:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17iZlE-0000Pf-00 for emacs-devel@gnu.org; Sat, 24 Aug 2002 08:11:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17iZlC-0000P9-00 for emacs-devel@gnu.org; Sat, 24 Aug 2002 08:11:23 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17iZlB-0000Ov-00; Sat, 24 Aug 2002 08:11:21 -0400 Original-Received: from wijiji.santafe.edu (wijiji [192.12.12.5]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g7OCBj515840; Sat, 24 Aug 2002 06:11:45 -0600 (MDT) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g7OCBKc11741; Sat, 24 Aug 2002 06:11:20 -0600 (MDT) X-Authentication-Warning: wijiji.santafe.edu: rms set sender to rms@wijiji using -f Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-Reply-To: <200208221517.g7MFHbX28780@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) 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:6839 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6839 > 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 ? What is necessary is for there to be an event that wakes up read_key_sequence. 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. If this event does the job, things ought to work. But apparently they don't work. I can't tell for certain what the problem is, of course, but the problem is extremely suggestive of a failure for read_key_sequence to recognize what happened.