all messages for Emacs-related lists mirrored at yhetil.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

* Re: bug fix for display property of the form ((height 0.5))
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2009-07-28 14:55 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

> 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?

No, I don't think it's that serious.




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

* Re: bug fix for display property of the form ((height 0.5))
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2009-07-28 14:58 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

> 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?

On second thought, the fix looks extremely safe, since only one place in
the code calls face_with_height.

I see that you checked it into the branch already; thanks.




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

* Re: bug fix for display property of the form ((height 0.5))
  2009-07-28 14:58 ` Chong Yidong
@ 2009-07-29  0:34   ` Kenichi Handa
  0 siblings, 0 replies; 4+ messages in thread
From: Kenichi Handa @ 2009-07-29  0:34 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

In article <87r5w0svlg.fsf@stupidchicken.com>, Chong Yidong <cyd@stupidchicken.com> writes:

> Kenichi Handa <handa@m17n.org> writes:
> > 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?

> On second thought, the fix looks extremely safe, since only one place in
> the code calls face_with_height.

I agree.  But, in general, face-and-font handling code is so
delicate that any change that looks simple may leads to
another bug. :-(

> I see that you checked it into the branch already; thanks.

Oops, it was my mistake.  I didn't intend to install it to
the branch without the maintainers approval.

---
Kenichi Handa
handa@m17n.org




^ 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.