From: Karl Heuer Date: Mon, 21 Sep 1998 19:42:29 +0000 (+0000) Subject: (mouse-avoidance-banish-hook): Don't move unless in an X-Git-Tag: emacs-20.4~1654 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f799bf7ce3c9b6d00df04c2be111f8d37941f9d0;p=emacs.git (mouse-avoidance-banish-hook): Don't move unless in an Emacs frame. --- diff --git a/lisp/avoid.el b/lisp/avoid.el index 0ce9e479229..2c3d7e822b9 100644 --- a/lisp/avoid.el +++ b/lisp/avoid.el @@ -268,6 +268,7 @@ redefine this function to suit your own tastes." (defun mouse-avoidance-banish-hook () (if (and (not executing-kbd-macro) ; don't check inside macro + (cadr (mouse-position)) ; don't move unless in an Emacs frame ;; Don't do anything if last event was a mouse event. (not (and (consp last-input-event) (symbolp (car last-input-event))