unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Mouse highlighting and fonts
@ 2008-05-23 15:09 Chong Yidong
  2008-05-23 19:53 ` Chong Yidong
  0 siblings, 1 reply; 9+ messages in thread
From: Chong Yidong @ 2008-05-23 15:09 UTC (permalink / raw)
  To: emacs-devel

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")))




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-05-27 13:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23 15:09 Mouse highlighting and fonts Chong Yidong
2008-05-23 19:53 ` Chong Yidong
2008-05-24 23:02   ` Stephen Berman
2008-05-25  2:01   ` Chong Yidong
2008-05-25  4:46     ` YAMAMOTO Mitsuharu
2008-05-25  8:21       ` Gerd Möllmann
2008-05-27  8:58     ` Johan Bockgård
2008-05-27  3:26   ` Chong Yidong
2008-05-27 13:24     ` Stephen Berman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).