[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] avoid: ignore mouse when it is hidden
From: |
Julien Danjou |
Subject: |
Re: [PATCH 2/2] avoid: ignore mouse when it is hidden |
Date: |
Mon, 18 Oct 2010 16:47:27 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
On Mon, Oct 18 2010, Stefan Monnier wrote:
> Just wondering here: seeing how you've gone through the trouble to write
> a patch for the C code, there must be a good reason, but why check (not
> (frame-pointer-visible-p)) rather than make-pointer-invisible?
There is a good reason! `make-pointer-invisible' is useful, but not
enough: it only makes the cursor invisible when type text.
So if your pointer is visible and you are moving your cursor in a
buffer, the pointer does not become invisible. Therefore, mouse-avoidance
can be useful in such a case.
On the opposite, if you typed text, your cursor is invisible. If you
start moving the cursor, it might encounter the pointer which is already
invisible. But since mouse-avoidance does not know it is invisible, it
makes it jump, even if it's useless.
--
Julien Danjou
// ᐰ <address@hidden> http://julien.danjou.info