From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#20872: 24.5; add-face-text-property doesn't work for :height Date: Mon, 22 Jun 2015 17:31:11 +0200 Message-ID: <85lhfbbvwt.fsf@iznogoud.viz> References: <87zj3s0zvu.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434987273 22261 80.91.229.3 (22 Jun 2015 15:34:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2015 15:34:33 +0000 (UTC) Cc: 20872@debbugs.gnu.org To: Oleh Krehel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 17:34:21 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z73jm-0002dD-GJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 17:34:18 +0200 Original-Received: from localhost ([::1]:40767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73jg-0003Xk-Tw for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 11:34:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73jb-0003V0-TY for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 11:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z73jX-0004ax-63 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 11:34:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73jX-0004a4-3F for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 11:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z73jW-00048y-8u for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 11:34:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87zj3s0zvu.fsf@gmail.com> Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jun 2015 15:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20872-submit@debbugs.gnu.org id=B20872.143498719715876 (code B ref 20872); Mon, 22 Jun 2015 15:34:02 +0000 Original-Received: (at 20872) by debbugs.gnu.org; 22 Jun 2015 15:33:17 +0000 Original-Received: from localhost ([127.0.0.1]:54636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z73im-00047z-P3 for submit@debbugs.gnu.org; Mon, 22 Jun 2015 11:33:17 -0400 Original-Received: from b2bfep14.mx.upcmail.net ([62.179.121.59]:55521) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z73ik-00047k-73 for 20872@debbugs.gnu.org; Mon, 22 Jun 2015 11:33:15 -0400 Original-Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep14.mx.upcmail.net (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20150622153307.WOFT1806.b2bfep14-int.chello.at@edge11.upcmail.net> for <20872@debbugs.gnu.org>; Mon, 22 Jun 2015 17:33:07 +0200 Original-Received: from iznogoud.viz ([91.119.233.79]) by edge11.upcmail.net with edge id jTZ61q0161jSwoT0BTZ6AH; Mon, 22 Jun 2015 17:33:07 +0200 X-SourceIP: 91.119.233.79 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1Z73ic-0000Ym-HJ; Mon, 22 Jun 2015 17:33:06 +0200 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104224 Archived-At: On Mon, Jun 22 2015, Oleh Krehel wrote: > But this doesn't work: > > (add-face-text-property 0 (length asdf) '(:height 1.0) nil asdf) > > While the text properties will change, when inserting `asdf' into a > `fundamental-mode' buffer, it will still have the height 1.2. How can I > set the height to 1.0, while preserving the face? A float as value of the :height attribute works as a scaling factor, see `set-face-attribute'. So, IIUC, the following would work (add-face-text-property 0 (length asdf) `(:height ,(/ 1 1.2)) nil asdf)