emacs-pretest-bug
[Top][All Lists]
Advanced

[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
is,
>  > 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
scroll-bar.
>         ;; 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)
instead.)

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

Ta, Simon.




reply via email to

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