[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
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.
- Re: mouse-autoselect-window with menu pane, (continued)
Re: mouse-autoselect-window with menu pane, martin rudalics, 2006/09/19
- Re: mouse-autoselect-window with menu pane, Richard Stallman, 2006/09/22
- Re: mouse-autoselect-window with menu pane, martin rudalics, 2006/09/23
- Re: mouse-autoselect-window with menu pane, Richard Stallman, 2006/09/23
- Re: mouse-autoselect-window with menu pane, Chong Yidong, 2006/09/25
- Re: mouse-autoselect-window with menu pane, Richard Stallman, 2006/09/25
RE: mouse-autoselect-window with menu pane,
Marshall, Simon <=
RE: mouse-autoselect-window with menu pane, Marshall, Simon, 2006/09/20
RE: mouse-autoselect-window with menu pane, Marshall, Simon, 2006/09/21