From drew.adams@oracle.com Sat Dec 13 10:17:30 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 26; hammy, 124; neutral, 90; spammy, 2. spammytokens:0.921-2--scale, 0.912-2--prove hammytokens:0.000-+--emacs, 0.000-+--23.0.60, 0.000-+--23060, 0.000-+--Emacs, 0.000-+--gnu X-Spam-Status: No, score=-7.2 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Dec 2008 18:17:30 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBDIHRns011351 for ; Sat, 13 Dec 2008 10:17:28 -0800 Received: from mail.gnu.org ([199.232.76.166]:56843 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LBZ2k-0000lv-K8 for emacs-pretest-bug@gnu.org; Sat, 13 Dec 2008 13:16:46 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LBZ3M-0007WS-SF for emacs-pretest-bug@gnu.org; Sat, 13 Dec 2008 13:17:26 -0500 Received: from acsinet12.oracle.com ([141.146.126.234]:29571) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LBZ3M-0007WM-G8 for emacs-pretest-bug@gnu.org; Sat, 13 Dec 2008 13:17:24 -0500 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBDIGxwq018259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 13 Dec 2008 18:17:01 GMT Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBDIHRwR023712 for ; Sat, 13 Dec 2008 18:17:28 GMT Received: from dradamslap1 (/141.144.80.117) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 13 Dec 2008 10:17:17 -0800 From: "Drew Adams" To: Subject: 23.0.60; Cannot use function as value of :height face attribute Date: Sat, 13 Dec 2008 10:17:23 -0800 Message-ID: <000401c95d4f$0bcb1d30$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcldTwtkSdd3+MrpT6qNsF7r4Pfs+A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt706.oracle.com [141.146.40.84] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4943FC2F.00BE:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) emacs -Q M-: (set-face-attribute 'default (selected-frame) :height (quote 1+)) gives this error: (error "Invalid face height" 1+) Emacs 22 gives the same error, BTW. But the Elisp manual, node Face Attributes says this: `:height' Either the font height, an integer in units of 1/10 point, a floating point number specifying the amount by which to scale the height of any underlying face, or a function, which is called with the old height (from the underlying face), and should return the new height. Am I misunderstanding the doc, or should you be able to use a function as the value of the :height attribute? What's more, if you do `M-x customize-face RET default', the Value Menu for attribute Height does not have an item for a function value. It has only `Height in 1/10 pt' and `Scale'. That suggests, but doesn't prove, that a function value is not allowed. And grepping the Elisp sources, I see no use of a function value for :height. Beyond this bug (or my misunderstanding), can we say more about the kind of function that would be needed? Is it supposed to treat each kind of :height value: integer, floating-point number, and function? The doc says the old height (passed to the function) is "from the underlying face", so I guess this means the actual face height, not the old value of :height. But which units are used for the actual face height? Are they too "units of 1/10 point"? In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-11-24 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' From cyd@stupidchicken.com Thu Jan 1 00:30:15 2009 Received: (at 1560-done) by emacsbugs.donarmstrong.com; 1 Jan 2009 08:30:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n018UCFh002793 for <1560-done@emacsbugs.donarmstrong.com>; Thu, 1 Jan 2009 00:30:14 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id EFDBE57E211; Thu, 1 Jan 2009 03:30:15 -0500 (EST) From: Chong Yidong To: "Drew Adams" Cc: 1560-done@debbugs.gnu.org Subject: Re: 23.0.60; Cannot use function as value of :height face attribute Date: Thu, 01 Jan 2009 03:30:15 -0500 Message-ID: <87eiznv36w.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > M-: (set-face-attribute 'default (selected-frame) :height (quote 1+)) > > gives this error: (error "Invalid face height" 1+) > > But the Elisp manual, node Face Attributes says this: > > `:height' > Either the font height, an integer in units of 1/10 point, a > floating point number specifying the amount by which to scale the > height of any underlying face, or a function, which is called with > the old height (from the underlying face), and should return the > new height. The default face must always be absolute (i.e., an integer). I've clarified the manual. From unknown Sun Aug 17 04:19:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Jan 2009 15:24:05 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator