unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Danjou <julien@danjou.info>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH 2/2] avoid: ignore mouse when it is hidden
Date: Mon, 18 Oct 2010 16:47:27 +0200	[thread overview]
Message-ID: <sa362wz1rsw.fsf@cigue.easter-eggs.fr> (raw)
In-Reply-To: <jwvk4lfwoll.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 18 Oct 2010 10:42:28 -0400")

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
// ᐰ <julien@danjou.info>   http://julien.danjou.info



  reply	other threads:[~2010-10-18 14:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 14:52 Export pointer visibility Julien Danjou
2010-10-14 14:52 ` [PATCH 1/2] Add frame-pointer-visible-p Julien Danjou
2010-10-17 19:11   ` Stefan Monnier
2010-10-18  9:31     ` Julien Danjou
2010-10-18  9:53       ` Andreas Schwab
2010-10-18 10:05         ` Lennart Borgman
2010-10-18 10:31         ` Eli Zaretskii
2010-10-18 10:54       ` Eli Zaretskii
2010-10-18 12:12         ` Julien Danjou
2010-10-18 13:05           ` Eli Zaretskii
2010-10-18 21:08           ` Stefan Monnier
2010-10-14 14:52 ` [PATCH 2/2] avoid: ignore mouse when it is hidden Julien Danjou
2010-10-18 14:42   ` Stefan Monnier
2010-10-18 14:47     ` Julien Danjou [this message]
2010-10-18 21:10   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sa362wz1rsw.fsf@cigue.easter-eggs.fr \
    --to=julien@danjou.info \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).