all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
To: Jay Berkenbilt <ejb@ql.org>
Cc: 5766@debbugs.gnu.org
Subject: bug#5766: 23.1.94; invisible pointer still highlights text
Date: Tue, 30 Mar 2010 12:28:34 +0200	[thread overview]
Message-ID: <4BB1D252.3010200@swipnet.se> (raw)
In-Reply-To: <20100324101053.0996812587.qww314159@motoko.argon.local>

Hello.

Jay Berkenbilt wrote:
> I like the new feature in 23.1.94 of having the mouse pointer turn
> invisible when you are typing.  However, if text is set to highlight
> when the pointer is over it, this still occurs when the invisible
> pointer is over something.  This can be disorienting if you switch
> contexts into a buffer that has this.  For example, if you're typing
> away and then switch to gnus, info, or any of the other many places
> where there is mouse-selectable text, some seemingly random text on the
> screen may be highlighted because the invisible cursor is over it.  If
> possible, it seems like any behavior triggered by the mouse pointer
> being over something should be disabled when the mouse pointer is
> invisible.
> 

I will shortly fix this in the trunk.  Is this appropriate for 23.2 also 
(Stefan or Yidong)?  Here's the patch:

=== modified file 'src/xdisp.c'
--- src/xdisp.c    2010-02-26 01:17:28 +0000
+++ src/xdisp.c    2010-03-30 09:58:29 +0000
@@ -23599,6 +23599,8 @@
      return;
  #endif

+  if (f->pointer_invisible) return;
+
    if (NILP (Vmouse_highlight)
        || !f->glyphs_initialized_p)
      return;


	Jan D.







  reply	other threads:[~2010-03-30 10:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24 14:10 bug#5766: 23.1.94; invisible pointer still highlights text Jay Berkenbilt
2010-03-30 10:28 ` Jan D. [this message]
2010-03-30 15:04   ` Stefan Monnier
2010-03-30 17:32     ` Jan Djärv

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

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

  git send-email \
    --in-reply-to=4BB1D252.3010200@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=5766@debbugs.gnu.org \
    --cc=ejb@ql.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.