From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: bug fix for display property of the form ((height 0.5)) Date: Mon, 27 Jul 2009 13:32:58 +0900 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1248669204 29230 80.91.229.12 (27 Jul 2009 04:33:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 04:33:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 06:33:17 2009 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 1MVHtj-0003Bj-3u for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 06:33:15 +0200 Original-Received: from localhost ([127.0.0.1]:52006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVHti-00037Q-HA for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 00:33:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVHtd-00035A-2E for emacs-devel@gnu.org; Mon, 27 Jul 2009 00:33:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVHtX-0002y0-0w for emacs-devel@gnu.org; Mon, 27 Jul 2009 00:33:07 -0400 Original-Received: from [199.232.76.173] (port=48885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVHtW-0002xg-Pb for emacs-devel@gnu.org; Mon, 27 Jul 2009 00:33:02 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:35215) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVHtW-0005CP-2p for emacs-devel@gnu.org; Mon, 27 Jul 2009 00:33:02 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n6R4WxFb006154 for ; Mon, 27 Jul 2009 13:32:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n6R4Wxtg009078 for ; Mon, 27 Jul 2009 13:32:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n6R4WwOQ011197 for ; Mon, 27 Jul 2009 13:32:58 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MVHtS-0003E8-CW for emacs-devel@gnu.org; Mon, 27 Jul 2009 13:32:58 +0900 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:113201 Archived-At: 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 * 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 */