From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: Mouse highlighting and fonts Date: Sun, 25 May 2008 01:02:04 +0200 Message-ID: <877idje26r.fsf@escher.local.home> References: <878wy1giqs.fsf@stupidchicken.com> <87tzgog5kd.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 1211671233 23360 80.91.229.12 (24 May 2008 23:20:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 May 2008 23:20:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 25 01:21:12 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 1K032o-0001R8-3I for ged-emacs-devel@m.gmane.org; Sun, 25 May 2008 01:20:58 +0200 Original-Received: from localhost ([127.0.0.1]:49830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0323-0001sF-9O for ged-emacs-devel@m.gmane.org; Sat, 24 May 2008 19:20:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K031x-0001pz-NJ for emacs-devel@gnu.org; Sat, 24 May 2008 19:20:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K031w-0001p4-P2 for emacs-devel@gnu.org; Sat, 24 May 2008 19:20:05 -0400 Original-Received: from [199.232.76.173] (port=59384 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K031w-0001ou-FA for emacs-devel@gnu.org; Sat, 24 May 2008 19:20:04 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:41302 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K031w-00067t-3e for emacs-devel@gnu.org; Sat, 24 May 2008 19:20:04 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1K031u-0007NV-8P for emacs-devel@gnu.org; Sat, 24 May 2008 23:20:02 +0000 Original-Received: from i5387eb1b.versanet.de ([83.135.235.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2008 23:20:02 +0000 Original-Received: from Stephen.Berman by i5387eb1b.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2008 23:20:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387eb1b.versanet.de 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, seldom 2.4 (older, 4) 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:97675 Archived-At: On Fri, 23 May 2008 15:53:54 -0400 Chong Yidong wrote: > 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 also sound like the bug I reported in . > 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. I wish I knew how to fix it; in lieu of that, I look forward to testing your patch! Steve Berman