From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#20872: 24.5; add-face-text-property doesn't work for :height Date: Mon, 22 Jun 2015 13:02:45 +0200 Message-ID: <87zj3s0zvu.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434971423 30268 80.91.229.3 (22 Jun 2015 11:10:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2015 11:10:23 +0000 (UTC) To: 20872@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 13:10:13 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 1Z6zcC-00081C-Qn for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 13:10:12 +0200 Original-Received: from localhost ([::1]:39301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zcC-0006mV-3o for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 07:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zc8-0006kO-2v for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6zc4-0000UN-Tt for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:10:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zc4-0000T7-RC for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6zc4-0004t5-C7 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:10:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jun 2015 11:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143497137918751 (code B ref -1); Mon, 22 Jun 2015 11:10:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jun 2015 11:09:39 +0000 Original-Received: from localhost ([127.0.0.1]:53908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6zbe-0004sM-VZ for submit@debbugs.gnu.org; Mon, 22 Jun 2015 07:09:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36180) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6zbc-0004s7-Tl for submit@debbugs.gnu.org; Mon, 22 Jun 2015 07:09:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6zbW-0008Sq-Pd for submit@debbugs.gnu.org; Mon, 22 Jun 2015 07:09:31 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:60220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zbW-0008Sm-ML for submit@debbugs.gnu.org; Mon, 22 Jun 2015 07:09:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zbS-0006gP-F6 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:09:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6zbP-0008NX-8v for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:09:26 -0400 Original-Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:37054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6zbO-0008NH-Om for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2015 07:09:23 -0400 Original-Received: by wicgi11 with SMTP id gi11so71661569wic.0 for ; Mon, 22 Jun 2015 04:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=hZ2yZGOw772KL0X+3tED69aRhSXnSKxXi5439TXlqEY=; b=Lmn9qJHjSScxlLmGliEjG45oxU42Bf1PkWRBEP4ujmsvKgYaxL7QsXLTRwnZgut6nd WsCiqgnRe3+RKXa/3OvglZjyFst4Fo2MKx2QCV5TcvON9ZnHLIGUdrtUxJ0Oxr1gVp06 iO2qurIF/0QPJj2BfdW9Nn9JHIyVfqwotSpRELyp1P6c6uKSMCLC7BDofwmP/YDZwIoA kerKF3LJ5/eigIE4udQTm2Pewt8xfZS6li1bJCMBIgIHZqCgT1wOSvZrVBbHsVCr2yem xh53evl5eQGr/AZkzK2DiTtRjcafCvJSkmyD17UzVgxOw8zjpzRFQmQMRJ3p0j4W8bVo NwOA== X-Received: by 10.180.82.6 with SMTP id e6mr31233080wiy.84.1434971362207; Mon, 22 Jun 2015 04:09:22 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id e2sm4691797wjw.12.2015.06.22.04.09.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 22 Jun 2015 04:09:21 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:104218 Archived-At: Here's a code that works for setting a string foreground: (defface test-face '((t (:height 1.2 :foreground "green"))) "doc.") (setq asdf (propertize "asdf" 'face 'test-face)) (add-face-text-property 0 (length asdf) '(:foreground "red") nil asdf) `asdf' will still have the height 1.2 through `test-face' while gaining a red foreground, instead of green. 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? The actual use case is to offer propertized strings a choices in the minibuffer. In that case, I want to keep all face properties, except the height. Since extra height messes up the trimming of strings to `window-width'.