[Top][All Lists]

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

RE: mouse-autoselect-window with menu pane

From: Marshall, Simon
Subject: RE: mouse-autoselect-window with menu pane
Date: Tue, 19 Sep 2006 10:04:30 +0100

>  > What did you think of treating the scroll-bars in the same way?  (That
>  > suspend autoselection if scrolling.)
> I could write
>        ((or (menu-or-popup-active-p)
>             (not (coordinates-in-window-p
>                   (cons mouse-x-position mouse-y-position) window)))
>         ;; A menu / popup dialog is active or the mouse is on the
>         ;; Suspend autoselection.
>         (setq mouse-autoselect-window-suspend t))
> in `mouse-autoselect-window-select'. Or did you think of something more
> elaborate?

That looks good.  (You can avoid the cons with (cdr mouse-position)

I was thinking that it would also simplify mouse-autoselect-window-cancel,
to avoid the tests specific to scrolling, but now I see maybe that's not the

Ta, Simon.

reply via email to

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