> > 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. _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
