unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* bug fix for display property of the form ((height 0.5))
@ 2009-07-27  4:32 Kenichi Handa
  2009-07-28 14:55 ` Chong Yidong
  2009-07-28 14:58 ` Chong Yidong
  0 siblings, 2 replies; 4+ messages in thread
From: Kenichi Handa @ 2009-07-27  4:32 UTC (permalink / raw)
  To: emacs-devel

I've just installed the attached fix for the trunk to fix
the problem of something like this doesn't work.

(insert (propertize "abc" 'display '((height 0.5))))

Should I install it for the branch too?

---
Kenichi Handa
handa@m17n.org

2009-07-27  Kenichi Handa  <handa@m17n.org>

	* xfaces.c (face_with_height): Call font_clear_prop.

Index: xfaces.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xfaces.c,v
retrieving revision 1.437
retrieving revision 1.438
diff -u -r1.437 -r1.438
--- xfaces.c	29 Jun 2009 05:28:56 -0000	1.437
+++ xfaces.c	27 Jul 2009 04:19:03 -0000	1.438
@@ -4958,6 +4958,7 @@
   face = FACE_FROM_ID (f, face_id);
   bcopy (face->lface, attrs, sizeof attrs);
   attrs[LFACE_HEIGHT_INDEX] = make_number (height);
+  font_clear_prop (attrs, FONT_SIZE_INDEX);
   face_id = lookup_face (f, attrs);
 #endif /* HAVE_WINDOW_SYSTEM */
 




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

end of thread, other threads:[~2009-07-29  0:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27  4:32 bug fix for display property of the form ((height 0.5)) Kenichi Handa
2009-07-28 14:55 ` Chong Yidong
2009-07-28 14:58 ` Chong Yidong
2009-07-29  0:34   ` Kenichi Handa

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