From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window Date: Tue, 18 Sep 2007 23:00:19 +0200 Message-ID: <871wcvr8nw.fsf@escher.local.home> References: <86abs1bd54.fsf@lola.quinscape.zz> <87myw1p8yb.fsf@escher.local.home> <46EF781A.2050306@gmx.at> <87ps0gxoq9.fsf@escher.local.home> <46EFDB85.40703@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190149255 9688 80.91.229.12 (18 Sep 2007 21:00:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2007 21:00:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 18 23:00:50 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 1IXkBZ-0002FH-Pk for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 23:00:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXkBY-0000iK-DK for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 17:00:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXkBV-0000iF-7Q for emacs-devel@gnu.org; Tue, 18 Sep 2007 17:00:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXkBT-0000i0-M3 for emacs-devel@gnu.org; Tue, 18 Sep 2007 17:00:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXkBT-0000hx-F8 for emacs-devel@gnu.org; Tue, 18 Sep 2007 17:00:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IXkBT-0007DM-0C for emacs-devel@gnu.org; Tue, 18 Sep 2007 17:00:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXkBR-00024u-4j for emacs-devel@gnu.org; Tue, 18 Sep 2007 23:00:37 +0200 Original-Received: from i577bca17.versanet.de ([87.123.202.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Sep 2007 23:00:37 +0200 Original-Received: from Stephen.Berman by i577bca17.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Sep 2007 23:00:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bca17.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:79224 Archived-At: On Tue, 18 Sep 2007 16:07:01 +0200 martin rudalics wrote: > What happens if you additionally select the frame in > `handle-select-window'? Like > > (when mouse-autoselect-window > ;; Run `mouse-leave-buffer-hook' when autoselecting window. > (run-hooks 'mouse-leave-buffer-hook) > (unless focus-follows-mouse > ;; Make sure frame is raised when autoselecting window and > ;; we assume that the window manager does not autoraise the > ;; frame of window. > (select-frame (window-frame window)) > (raise-frame (window-frame window)))) With this and with mouse-autoselect-window set to t, moving the mouse to another Emacs frame of the same session immediately raises and focusses it. That is the same as when I set the KDE focus policy to focus follows mouse -- but since I have the policy set to focus follows click, I would not expect Emacs to behave differently. With mouse-autoselect-window set to a number, the behavior is the same as I described in my previous message, i.e., raising only with split windows but only in alternation and not focussing. In other words, here select-frame has no effect. Steve Berman