GNU bug report logs - #5766
23.1.94; invisible pointer still highlights text

Previous Next

Package: emacs;

Reported by: Jay Berkenbilt <ejb <at> ql.org>

Date: Wed, 24 Mar 2010 14:12:01 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5766 in the body.
You can then email your comments to 5766 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5766; Package emacs. (Wed, 24 Mar 2010 14:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jay Berkenbilt <ejb <at> ql.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 24 Mar 2010 14:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jay Berkenbilt <ejb <at> ql.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1.94; invisible pointer still highlights text
Date: Wed, 24 Mar 2010 10:10:53 -0400
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.


In GNU Emacs 23.1.94.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
 of 2010-03-16 on motoko.argon.local
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--prefix=/opt/tps/packages/linux.x86_64.rhel5/emacs-23.1.94-1''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Summary

Minor modes in effect:
  which-function-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
k e SPC a n y t h i n g SPC h a p p e n . SPC S-SPC 
F e e l SPC f r e e SPC t o SPC k e e p SPC o n SPC 
t o p SPC o f SPC m e SPC o f <M-backspace> <M-backspace> 
<M-backspace> <M-backspace> <M-backspace> <M-backspace> 
n a g SPC m e SPC o r SPC h e l p <M-backspace> c o 
n t i n u SPC t o SPC u p d a t e M-b M-b M-b M-f e 
C-e SPC t h e SPC h e l p d e s k SPC t i c k e t . 
M-q <return> <return> - - J a y C-n C-M-z C-c C-c s 
s n SPC s q g s <return> k k k k k k k k k k k k k 
k k k k k k k k k k k k k k k k k k q <return> <return> 
SPC q <return> <return> d d q <return> <return> d d 
d d d d d d q <return> <return> d d d d d d d q <return> 
<return> M-n g p p r q <tab> <return> C-c C-y C-k C-k 
C-f M-SPC C-n C-a C-k C-p M-q M-> <return> C h r i 
M-/ SPC h a s SPC a c c e p t e d SPC t h e SPC i n 
v i t a t i o n . <return> C-p C-p C-k M-> <return> 
- - J a y C-n C-c C-c s d d d C d <tab> <return> d 
q g s p <return> M-x r e p o r t SPC e <tab> b <tab> 
<return>

Recent messages:
nnfolder: Reading incoming mail (no new mail)...done
Reading active file via nnfolder...done
Checking new news...done
Saving /home/jberkenb/.newsrc.eld...
Saving file /home/jberkenb/.newsrc.eld...
Wrote /home/jberkenb/.newsrc.eld
Saving /home/jberkenb/.newsrc.eld...done
Retrieving newsgroup: argon.mail.00.main...
Fetching headers for argon.mail.00.main...done
Generating summary...done

Load-path shadows:
/home/jberkenb/elisp/startup hides /opt/tps/packages/linux.x86_64.rhel5/emacs-23.1.94-1/share/emacs/23.1.94/lisp/startup

Features:
(shadow warnings emacsbug starttls dabbrev auth-source mailalias tls
q-valid-addr newcomment flyspell ispell rmail sort gnus-cite ansi-color
w3m-form w3m-symbol mail-extr gnus-async gnus-bcklg multi-isearch
parse-time gnus-ml disp-table vc-accurev paranoid-backup byte-opt
bytecomp byte-compile nndraft nnmh nnfolder gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015
epg-config mm-view smime dig nntp gnus-cache gnus-sum gnus-group
gnus-undo nndoc nnoo nnmail mail-source format-spec gnus-start gnus-spec
gnus-int gnus-range gnus-win gnus gnus-ems vc-svn vc vc-dispatcher w3m
browse-url doc-view image-mode dired timezone w3m-hist w3m-fb w3m-ems
w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util qmime qmime-compose
qmime-view which-func imenu filecache server uniquify compile ange-ftp
comint ring message ecomplete rfc822 mml mml-sec password-cache
mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045
qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util
mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash
mail-utils cc-styles cc-align cc-engine cc-vars cc-defs smtpmail
sendmail regexp-opt project advice help-fns advice-preload jka-compr
cus-edit easymenu wid-edit cus-start cus-load edmacro kmacro cl cl-19
tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
font-setting tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind system-font-setting
font-render-setting gtk x-toolkit x multi-tty emacs)





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5766; Package emacs. (Tue, 30 Mar 2010 10:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 5766 <at> debbugs.gnu.org (full text, mbox):

From: "Jan D." <jan.h.d <at> swipnet.se>
To: Jay Berkenbilt <ejb <at> ql.org>
Cc: 5766 <at> debbugs.gnu.org
Subject: Re: bug#5766: 23.1.94; invisible pointer still highlights text
Date: Tue, 30 Mar 2010 12:28:34 +0200
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.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5766; Package emacs. (Tue, 30 Mar 2010 15:05:02 GMT) Full text and rfc822 format available.

Message #11 received at 5766 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: "Jan D." <jan.h.d <at> swipnet.se>
Cc: Jay Berkenbilt <ejb <at> ql.org>, 5766 <at> debbugs.gnu.org
Subject: Re: bug#5766: 23.1.94; invisible pointer still highlights text
Date: Tue, 30 Mar 2010 11:04:13 -0400
>> 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:

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

[ I didn't know about this feature.  ]
The `if' should be combined with the subsequent one, but other than that
I think it's OK to install for Emacs-23.2.


        Stefan




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Tue, 30 Mar 2010 17:33:01 GMT) Full text and rfc822 format available.

Notification sent to Jay Berkenbilt <ejb <at> ql.org>:
bug acknowledged by developer. (Tue, 30 Mar 2010 17:33:02 GMT) Full text and rfc822 format available.

Message #16 received at 5766-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: Jay Berkenbilt <ejb <at> ql.org>, 5766-done <at> debbugs.gnu.org
Subject: Re: bug#5766: 23.1.94; invisible pointer still highlights text
Date: Tue, 30 Mar 2010 19:32:32 +0200
Stefan Monnier skrev:
>>> 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:
> 
>> +  if (f->pointer_invisible) return;
>> +
>>    if (NILP (Vmouse_highlight)
>>        || !f->glyphs_initialized_p)
>>      return;
> 
> [ I didn't know about this feature.  ]

It was added in July, there was some discussion about it in emacs-devel.

> The `if' should be combined with the subsequent one, but other than that
> I think it's OK to install for Emacs-23.2.
> 

Ok, checked in to the emacs-23 branch.

	Jan D.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Apr 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.