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: Mouse highlighting and fonts Date: Fri, 23 May 2008 11:09:15 -0400 Message-ID: <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 1211555384 16199 80.91.229.12 (23 May 2008 15:09:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 15:09:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 17:10:22 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 1JzYuH-0005z3-4f for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 17:10:09 +0200 Original-Received: from localhost ([127.0.0.1]:57140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzYtW-00068Q-Kc for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 11:09:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzYtS-00065f-T7 for emacs-devel@gnu.org; Fri, 23 May 2008 11:09:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzYtR-00062g-Ey for emacs-devel@gnu.org; Fri, 23 May 2008 11:09:18 -0400 Original-Received: from [199.232.76.173] (port=34488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzYtR-00062S-Ad for emacs-devel@gnu.org; Fri, 23 May 2008 11:09:17 -0400 Original-Received: from c-98-216-111-182.hsd1.ma.comcast.net ([98.216.111.182]:19294 helo=furry) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzYtR-0001zt-1v for emacs-devel@gnu.org; Fri, 23 May 2008 11:09:17 -0400 Original-Received: by furry (Postfix, from userid 1000) id 28E45C04D; Fri, 23 May 2008 11:09:16 -0400 (EDT) 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:97593 Archived-At: 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. A test case: (progn (switch-to-buffer "*Test*") (erase-buffer) (insert "aaaaaaaaaaaaaaaa") (put-text-property 1 6 'face (list :foreground "cyan" :background "dark blue" :height 2.5)) (put-text-property 6 (point-max) 'face (list :foreground "violet" :background "dark red")) (put-text-property 3 8 'mouse-face (list :background "green")))