From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window raises frames Date: Wed, 10 Oct 2007 21:13:42 -0400 Message-ID: References: <470D3993.8040003@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192065240 32450 80.91.229.12 (11 Oct 2007 01:14:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 01:14:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 03:13:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ifmcc-0003vl-Qq for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 03:13:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfmcW-0007Zz-QP for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2007 21:13:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfmcU-0007Zb-4p for emacs-devel@gnu.org; Wed, 10 Oct 2007 21:13:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfmcS-0007Ys-5k for emacs-devel@gnu.org; Wed, 10 Oct 2007 21:13:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfmcS-0007Yo-1f for emacs-devel@gnu.org; Wed, 10 Oct 2007 21:13:44 -0400 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfmcR-00039f-Q7 for emacs-devel@gnu.org; Wed, 10 Oct 2007 21:13:44 -0400 Original-Received: from ceviche.home ([70.55.141.81]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071011011343.PYYV1733.tomts10-srv.bellnexxia.net@ceviche.home> for ; Wed, 10 Oct 2007 21:13:43 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id DB80EB41BB; Wed, 10 Oct 2007 21:13:42 -0400 (EDT) In-Reply-To: <470D3993.8040003@gmx.at> (martin rudalics's message of "Wed\, 10 Oct 2007 22\:44\:03 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80569 Archived-At: >> I started to see frames raised while I was just moving my mouse. >> Placing `debug-on-entry' on `raise-frame' showed the problem to be: >> >> Debugger entered--entering a function: >> * raise-frame(#) >> select-frame-set-input-focus(#) >> handle-select-window((select-window (#))) >> call-interactively(handle-select-window nil nil) >> >> I think the problem is that handle-select-window shouldn't call >> select-frame-set-input-focus. It should maybe call x-focus-frame instead. > Would that really be less embarassing? I'm not sure I understand what you mean. > What are the values of `mouse-autoselect-window' and `focus-follows-mouse' > on your system? Both, but that's not relevant: handle-select-window should never call "raise-frame". Stefan