[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse-autoselect-window

From: martin rudalics
Subject: Re: mouse-autoselect-window
Date: Wed, 05 Sep 2007 20:04:15 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> 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.~      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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]