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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8209: [PATCH] avoid: do not move the cursor if cursor-type is nil


From: Julien Danjou
Subject: bug#8209: [PATCH] avoid: do not move the cursor if cursor-type is nil
Date: Wed, 9 Mar 2011 15:49:19 +0100

Signed-off-by: Julien Danjou <address@hidden>
---
 lisp/ChangeLog |    5 +++++
 lisp/avoid.el  |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0c72043..dfa2518 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-09  Julien Danjou  <address@hidden>
+
+       * avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
+       `cursor-type' is nil.
+
 2011-03-08  Chong Yidong  <address@hidden>
 
        * emacs-lisp/package.el (package-refresh-contents)
diff --git a/lisp/avoid.el b/lisp/avoid.el
index fe47a0c..c864d48 100644
--- a/lisp/avoid.el
+++ b/lisp/avoid.el
@@ -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)))
-- 
1.7.4.1






reply via email to

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