From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Mouse highlighting and fonts Date: Fri, 23 May 2008 15:53:54 -0400 Message-ID: <87tzgog5kd.fsf@stupidchicken.com> References: <878wy1giqs.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211572700 10595 80.91.229.12 (23 May 2008 19:58:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 19:58:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 21:58:56 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JzdPd-00017D-TS for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 21:58:50 +0200 Original-Received: from localhost ([127.0.0.1]:45920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzdOt-0005xU-5b for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 15:58:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzdOp-0005xP-U0 for emacs-devel@gnu.org; Fri, 23 May 2008 15:57:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzdOo-0005xD-G3 for emacs-devel@gnu.org; Fri, 23 May 2008 15:57:59 -0400 Original-Received: from [199.232.76.173] (port=50270 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzdOo-0005xA-E6 for emacs-devel@gnu.org; Fri, 23 May 2008 15:57:58 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:40356) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzdOo-00088q-4f for emacs-devel@gnu.org; Fri, 23 May 2008 15:57:58 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 49AFD4E491; Fri, 23 May 2008 15:53:54 -0400 (EDT) In-Reply-To: <878wy1giqs.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 23 May 2008 11:09:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97611 Archived-At: Chong Yidong writes: > With the current CVS code, the mouse highlight preserves the size of the > underlying face, which avoids the meta-stability problem I mentioned a > few weeks ago. However, mouse highlighting of the glyph background > still doesn't work right when the underlying font size varies across the > highlighted region. BTW, another mouse-highlighting bug I reported earlier is still present. Under certain circumstances, the area to the left and/or right of the physical cursor doesn't acquire the proper mouse-face. This appears to be a long-standing bug, but one that didn't show up until the new font code. That's because it arises as follows: when the cursor glyph has a nonzero lbearing or rbearing (i.e., it overlaps with its neighbors), the neighboring glyphs are redrawn, and this can overwrite the mouse-face highlight. See xdisp.c:19934. This didn't show up because previously, overlapping glyphs were generally not encountered. I'll try to fix this once I get the time, unless someone else fixes it first.