From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: Mouse highlighting and fonts Date: Tue, 27 May 2008 10:58:23 +0200 Message-ID: References: <878wy1giqs.fsf@stupidchicken.com> <87tzgog5kd.fsf@stupidchicken.com> <87hccn9m6m.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1211878982 7538 80.91.229.12 (27 May 2008 09:03:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 09:03:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 27 11:03:42 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 1K0v2k-0001ot-G1 for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 11:00:30 +0200 Original-Received: from localhost ([127.0.0.1]:53304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0v1z-0004pg-E3 for ged-emacs-devel@m.gmane.org; Tue, 27 May 2008 04:59:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0v12-0004At-7z for emacs-devel@gnu.org; Tue, 27 May 2008 04:58:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0v11-0004AF-D0 for emacs-devel@gnu.org; Tue, 27 May 2008 04:58:43 -0400 Original-Received: from [199.232.76.173] (port=47033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0v11-0004AA-5B for emacs-devel@gnu.org; Tue, 27 May 2008 04:58:43 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:46251 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 1K0v10-0000wE-0y for emacs-devel@gnu.org; Tue, 27 May 2008 04:58:42 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K0v0t-0006Bg-SN for emacs-devel@gnu.org; Tue, 27 May 2008 08:58:35 +0000 Original-Received: from remote5.student.chalmers.se ([129.16.29.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 May 2008 08:58:35 +0000 Original-Received: from bojohan+news by remote5.student.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 May 2008 08:58:35 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: remote5.student.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:PE2012Qccp7TtqdzQGMis+3Hnhk= 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:97792 Archived-At: Chong Yidong writes: > Chong Yidong writes: > >> 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. > > According to the comments, this code is supposed to redraw glyphs that > are overwritten because of the left/right overhang of the specified > glyph string. But I've never noticed overlapping glyphs in Emacs. > Under what circumstances can overlapping glyphs occur? See the thread pointed to by Stephen, http://thread.gmane.org/gmane.emacs.devel/88763 > In other words, would there be any effect from simply turning off the > overlap-compensation code, as indicated? Anyone know? I had quite good results from adding `&& hl == DRAW_NORMAL_TEXT' to the conditional. -- Johan Bockgård