From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#5766: 23.1.94; invisible pointer still highlights text Date: Tue, 30 Mar 2010 12:28:34 +0200 Message-ID: <4BB1D252.3010200@swipnet.se> References: <20100324101053.0996812587.qww314159@motoko.argon.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269946551 17124 80.91.229.12 (30 Mar 2010 10:55:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2010 10:55:51 +0000 (UTC) Cc: 5766@debbugs.gnu.org To: Jay Berkenbilt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 30 12:55:47 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NwZ6o-00007n-V2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 12:55:47 +0200 Original-Received: from localhost ([127.0.0.1]:57314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwZ6n-0004Hd-T1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 06:55:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwZ6i-0004Gk-FP for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 06:55:40 -0400 Original-Received: from [140.186.70.92] (port=38905 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwZ6h-0004Ff-DG for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 06:55:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwZ6f-0004sz-O7 for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 06:55:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60074) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwZ6f-0004su-MK for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 06:55:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NwYgv-0007lv-LV; Tue, 30 Mar 2010 06:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Mar 2010 10:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5766-submit@debbugs.gnu.org id=B5766.126994492529866 (code B ref 5766); Tue, 30 Mar 2010 10:29:01 +0000 Original-Received: (at 5766) by debbugs.gnu.org; 30 Mar 2010 10:28:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwYgf-0007lf-50 for submit@debbugs.gnu.org; Tue, 30 Mar 2010 06:28:45 -0400 Original-Received: from smtprelay-h12.telenor.se ([62.127.194.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwYgc-0007la-Lq for 5766@debbugs.gnu.org; Tue, 30 Mar 2010 06:28:43 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h12.telenor.se (Postfix) with ESMTP id D2D75EA920 for <5766@debbugs.gnu.org>; Tue, 30 Mar 2010 12:28:49 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkhBAIZvsUtV4S1uPGdsb2JhbACHZJNIDAEBAQE1Lb9ShQAE X-IronPort-AV: E=Sophos;i="4.51,333,1267398000"; d="scan'208";a="57423993" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 30 Mar 2010 12:28:36 +0200 Original-Received: from [192.168.77.62] (ns1.operax.com [213.88.244.216]) by coolsville.localdomain (Postfix) with ESMTPSA id 35FBF7FA01A; Tue, 30 Mar 2010 12:28:35 +0200 (CEST) User-Agent: Thunderbird 2.0.0.24 (X11/20100317) In-Reply-To: <20100324101053.0996812587.qww314159@motoko.argon.local> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Mar 2010 06:29:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35804 Archived-At: 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.