Commit ec6ecaed authored by Julien Danjou's avatar Julien Danjou Committed by Chong Yidong
Browse files

Inhibit mouse-avoidance if cursor-type is nil (Bug#8209).

* lisp/avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
`cursor-type' is nil.
parent 9d5aa01d
2011-03-10 Julien Danjou <julien@danjou.info>
* avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
`cursor-type' is nil.
2011-03-09 Jay Belanger <jay.p.belanger@gmail.com>
 
* calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'.
......
......@@ -278,6 +278,7 @@ redefine this function to suit your own tastes."
(defun mouse-avoidance-ignore-p ()
(let ((mp (mouse-position)))
(or (not (frame-pointer-visible-p)) ; The pointer is hidden
(not cursor-type) ; There's no cursor
executing-kbd-macro ; don't check inside macro
(null (cadr mp)) ; don't move unless in an Emacs frame
(not (eq (car mp) (selected-frame)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment