From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: mouse-autoselect-window Date: Wed, 05 Sep 2007 20:04:15 +0200 Message-ID: <46DEEF9F.5060904@gmx.at> References: <86abs1bd54.fsf@lola.quinscape.zz> <87myw1p8yb.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189015430 18613 80.91.229.12 (5 Sep 2007 18:03:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 18:03:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 20:03: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 1ISzED-0007gi-Ou for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 20:03:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISzEC-0007Uu-9Z for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 14:03:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISzDg-0006ph-Qh for emacs-devel@gnu.org; Wed, 05 Sep 2007 14:03:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISzDe-0006mK-0g for emacs-devel@gnu.org; Wed, 05 Sep 2007 14:03:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISzDd-0006lz-TG for emacs-devel@gnu.org; Wed, 05 Sep 2007 14:03:13 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ISzDc-00009x-Pr for emacs-devel@gnu.org; Wed, 05 Sep 2007 14:03:13 -0400 Original-Received: (qmail invoked by alias); 05 Sep 2007 18:03:11 -0000 Original-Received: from N852P025.adsl.highway.telekom.at (EHLO [62.47.50.121]) [62.47.50.121] by mail.gmx.net (mp048) with SMTP; 05 Sep 2007 20:03:11 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Qp1VFCirQ2wbUAtoFSEjBxwa1kuKq6V2NbS7rcr +ahxxRETfjae7u User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <87myw1p8yb.fsf@escher.local.home> X-Y-GMX-Trusted: 0 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:77883 Archived-At: > I disagree. I'm running Emacs on GNU/Linux under KDE, I have a > click-to-focus policy but also have mouse-autoselect-window set to t, > because I want to have autoselection between split windows within a > single frame. I also observe the same behavior that Drew Adams > described. Seems like a bug, indeed. Could you try the attached patch (against Emacs_22_BASE) with `focus-follows-mouse' nil and `mouse-autoselect-window' non-nil? We'd also have to remove the This variable does not have any effect on MS-Windows. statement in the `focus-follows-mouse' doc-string (and as Drew suggested update the documentation). *** window.el.~1.120.2.2.~ Wed Aug 8 23:12:06 2007 --- window.el Wed Sep 5 19:59:54 2007 *************** *** 853,858 **** --- 853,863 ---- ;; Delayed autoselection was temporarily suspended, reenable it. (mouse-autoselect-window-start mouse-position)) ((and window (not (eq window (selected-window))) + (or focus-follows-mouse + ;; With `focus-follows-mouse' nil, do autoselection + ;; if and only if we're within the same frame. + (eq (window-frame window) + (window-frame (selected-window)))) (or (not (numberp mouse-autoselect-window)) (and (> mouse-autoselect-window 0) ;; If `mouse-autoselect-window' is positive, select