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: Tue, 18 Sep 2007 09:02:50 +0200 Message-ID: <46EF781A.2050306@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: multipart/mixed; boundary="------------090601090806080008070209" X-Trace: sea.gmane.org 1190100143 21945 80.91.229.12 (18 Sep 2007 07:22:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2007 07:22:23 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 18 09:22:19 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 1IXXPU-0007tZ-6z for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 09:22:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXXPS-0004pr-Fx for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2007 03:22:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXXPP-0004pm-IX for emacs-devel@gnu.org; Tue, 18 Sep 2007 03:22:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXXPN-0004pP-5A for emacs-devel@gnu.org; Tue, 18 Sep 2007 03:22:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXXPM-0004pM-Ux for emacs-devel@gnu.org; Tue, 18 Sep 2007 03:22:08 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IXXPM-0007T5-HB for emacs-devel@gnu.org; Tue, 18 Sep 2007 03:22:08 -0400 Original-Received: (qmail invoked by alias); 18 Sep 2007 07:02:06 -0000 Original-Received: from N734P010.adsl.highway.telekom.at (EHLO [62.47.35.170]) [62.47.35.170] by mail.gmx.net (mp029) with SMTP; 18 Sep 2007 09:02:06 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+cVUspJbucOY7rEINyIOR6ajMnmaFZrbKdHWSGDg qsofYGoU7kjTeS 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:79179 Archived-At: This is a multi-part message in MIME format. --------------090601090806080008070209 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > 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. I'm afraid that autoselection between windows of the same frame only is somewhat very difficult to achieve. The attached patch should correct the behavior observed by Drew though. Could you please try? --------------090601090806080008070209 Content-Type: text/plain; name="window.el.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="window.el.patch" *** window.el.~1.120.2.2.~ Wed Aug 8 23:12:06 2007 --- window.el Tue Sep 18 08:54:28 2007 *************** *** 921,927 **** (setq mouse-autoselect-window-state nil) (when mouse-autoselect-window ;; Run `mouse-leave-buffer-hook' when autoselecting window. ! (run-hooks 'mouse-leave-buffer-hook)) (select-window window))))) (define-key ctl-x-map "2" 'split-window-vertically) --- 921,932 ---- (setq mouse-autoselect-window-state nil) (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. ! (raise-frame (window-frame window)))) (select-window window))))) (define-key ctl-x-map "2" 'split-window-vertically) --------------090601090806080008070209 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------090601090806080008070209--