From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Proposal: Only highlight mouse-face when mouse is moved Date: Thu, 14 Feb 2002 12:07:30 +0200 (IST) Message-ID: NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: quimby2.netfonds.no 1013682050 29536 195.204.10.66 (14 Feb 2002 10:20:50 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 14 Feb 2002 10:20:50 GMT Cc: storm@cua.dk, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16bJ0T-0007gI-00 for ; Thu, 14 Feb 2002 11:20:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16bIpJ-0004mp-00; Thu, 14 Feb 2002 05:09:17 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16bIoN-0004jh-00; Thu, 14 Feb 2002 05:08:19 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id MAA28421; Thu, 14 Feb 2002 12:07:31 +0200 (IST) X-Sender: eliz@is Original-To: Jason Rumney In-Reply-To: Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1121 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1121 On 13 Feb 2002, Jason Rumney wrote: > > Does this mean that if I move the mouse in a way that causes the > > highlight, and then press a key, the highlight will go off? If so, > > I'm not sure it's a good idea. > > I don't think it has to mean that. It need only take effect when > deciding whether to start displaying mouse-highlight, not whether to > continue displaying mouse-highlight that is already displayed. It's been awhile since I looked at that code, but IIRC, the decision whether or not to highlight is made each time the display is updated. That's because redisplay removes the highlight, redraws the portions of the screen that need to be updated, and then puts the highlight back in its (possibly new) screen position. So unless I'm missing something, it looks like impementing it like you say would not be easy. Just looking at the last event is not enough. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel