From unknown Thu Aug 14 21:46:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2659 <2659@debbugs.gnu.org> To: bug#2659 <2659@debbugs.gnu.org> Subject: Status: 23.0.91; set-face-attribute :height float on a Mac Reply-To: bug#2659 <2659@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:46:48 +0000 retitle 2659 23.0.91; set-face-attribute :height float on a Mac reassign 2659 emacs submitter 2659 Alex Schr=C3=B6der severity 2659 minor thanks From kensanata@gmail.com Fri Mar 13 08:12:16 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Mar 2009 15:12: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.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n2DFCCuF028172 for ; Fri, 13 Mar 2009 08:12:13 -0700 Received: from mx10.gnu.org ([199.232.76.166]:40311) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Li93A-0002HH-Mc for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 11:12:12 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Li937-0000oj-F2 for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 11:11:51 -0400 Received: from mail-ew0-f179.google.com ([209.85.219.179]:47146) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Li936-0000n1-94 for emacs-pretest-bug@gnu.org; Fri, 13 Mar 2009 11:11:49 -0400 Received: by ewy27 with SMTP id 27so3402284ewy.42 for ; Fri, 13 Mar 2009 08:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=xC8Bf8ss4edcGtVQYqft5k/a6jSIpBRmR2KQKji3D/g=; b=twZ/kF2T/nJOkD4AQRx4LsuIDIKJJ3YBa91cciKiRYhOuez14bbvftyX3//W1XthiY E+iMHM4XM+z9v7LfGnJbWKV2ppCHVBkzE/a4+6n57vWrJB15PRu2Y+df1SssewSK278f YMzpa0o84RteF5o8yU6IbzoM3nAPJwPI6X7zg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=P0QXeYwNuzhk5o5dXcFzKgjSjmqhNjn4zfzgBzKZSYYyhrpLsUO1DKJUaGTt0N+Pja Am+Aq5GG6YIRiN6Wz8iUwm5gec/6+Y3pJPg/S2d3FMCwEldS/R7qgK/3nUJ+qvk/RLbK DOf/XQSe7PyoIamqii36xgKxlTc+cHjyXUJsA= MIME-Version: 1.0 Received: by 10.216.9.81 with SMTP id 59mr733878wes.181.1236957100532; Fri, 13 Mar 2009 08:11:40 -0700 (PDT) Date: Fri, 13 Mar 2009 16:11:40 +0100 Message-ID: <9abbd5730903130811qfc010di2c45ab84f511d329@mail.gmail.com> Subject: 23.0.91; set-face-attribute :height float on a Mac From: =?ISO-8859-1?Q?Alex_Schr=F6der?= To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) The following results in an error: (set-face-attribute 'default nil :height 1.1) Debugger entered--Lisp error: (error "Invalid default face height" 1.1) internal-set-lisp-face-attribute(default :height 1.1 0) set-face-attribute(default nil :height 1.1) I think it should not because the doc string says: `:height' VALUE must be either an integer specifying the height of the font to use in 1/10 pt, a floating point number specifying the amount by which to scale any underlying face, or a function, which is called with the old height (from the underlying face), and should return the new height. Either that, or the doc string must be improved. :) I'm using Apple's Mac OS 10.3.9. In GNU Emacs 23.0.91.1 (powerpc-apple-darwin7.9.0, NS apple-appkit-743.43) of 2009-03-13 on Alpinobombus.local Windowing system distributor `Apple', version 10.3.743 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From monnier@IRO.UMontreal.CA Fri Mar 13 09:08:29 2009 Received: (at 2659) by emacsbugs.donarmstrong.com; 13 Mar 2009 16:08:29 +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=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DG8OYd012092 for <2659@emacsbugs.donarmstrong.com>; Fri, 13 Mar 2009 09:08:25 -0700 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n2DG8NvP022928; Fri, 13 Mar 2009 12:08:23 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 313B5807EA; Fri, 13 Mar 2009 12:08:23 -0400 (EDT) From: Stefan Monnier To: Alex =?iso-8859-1?Q?Schr=F6der?= Cc: 2659@debbugs.gnu.org Subject: Re: bug#2659: 23.0.91; set-face-attribute :height float on a Mac Message-ID: References: <9abbd5730903130811qfc010di2c45ab84f511d329@mail.gmail.com> Date: Fri, 13 Mar 2009 12:08:23 -0400 In-Reply-To: <9abbd5730903130811qfc010di2c45ab84f511d329@mail.gmail.com> ("Alex =?iso-8859-1?Q?Schr=F6der=22's?= message of "Fri, 13 Mar 2009 16:11:40 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3230=0 > Debugger entered--Lisp error: (error "Invalid default face height" 1.1) This says that you can't specify "1.1 times the underlying face" because the default face as no underlying face. Stefan From kensanata@gmail.com Fri Mar 13 09:22:40 2009 Received: (at 2659) by emacsbugs.donarmstrong.com; 13 Mar 2009 16:22:40 +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=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f176.google.com (mail-ew0-f176.google.com [209.85.219.176]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DGMaM3016402 for <2659@emacsbugs.donarmstrong.com>; Fri, 13 Mar 2009 09:22:37 -0700 Received: by ewy24 with SMTP id 24so2765121ewy.1 for <2659@emacsbugs.donarmstrong.com>; Fri, 13 Mar 2009 09:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2muEXu7lCPuI5UbzcwQJkMlBKGBX0E/RnDXHiiRaXZQ=; b=mpSjau8se1XoKRthqFknzJFYNeldR6ytY0nKzkev8c1lpEFKKHoNbiE9TvCPgi5/+X +H7SDCMDFKordHaIW+Z+68vxsVdNrKoSsG083E0N9ZZth6zmE7+Pjsy0ERjIOUbx7aWh ebF2EC+dFsxuvh9Em9Rwxjdypq9aKPoh/DN04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iRP5HdSPOHb9J05R1J7zWSAne1QQIeTvIVBeWeykAEu5LJncTlvf9p6AUT6J/Wxgwf GcN3bAbF+iLzpuZCaAExmXQ7lCz3my/yDo1sqyZYPDmAU4VOncZD3K2J9DN+/JjczDzp ZiJu5DGm813e9H5KyQiT3lukdCnsfDsIeRjvU= MIME-Version: 1.0 Received: by 10.216.39.85 with SMTP id c63mr801613web.103.1236961350438; Fri, 13 Mar 2009 09:22:30 -0700 (PDT) In-Reply-To: References: <9abbd5730903130811qfc010di2c45ab84f511d329@mail.gmail.com> Date: Fri, 13 Mar 2009 17:22:30 +0100 Message-ID: <9abbd5730903130922rcba8632n83742a3db05c9d56@mail.gmail.com> Subject: Re: bug#2659: 23.0.91; set-face-attribute :height float on a Mac From: =?ISO-8859-1?Q?Alex_Schr=F6der?= To: Stefan Monnier Cc: 2659@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ah. I misunderstood the doc string, then. Can we improve the docstring and find another way to say "underlying face"? The word underlying doesn't appear in the Elisp manual index. When I read your answer I thought that underlying faces are the faces are the faces I inherit from. But when I look at (elisp) Face Attributes I see the following: `:inherit' The name of a face from which to inherit attributes, or a list of face names. Attributes from inherited faces are merged into the face like an underlying face would be, with higher priority than underlying faces. If a list of faces is used, attributes from faces earlier in the list override those from later faces. Apparently there is a difference between inheritance and underlying that I don't understand. On Fri, Mar 13, 2009 at 17:08, Stefan Monnier wrote: >> Debugger entered--Lisp error: (error "Invalid default face height" 1.1) > > This says that you can't specify "1.1 times the underlying face" because > the default face as no underlying face. > > > Stefan > From rgm@gnu.org Fri Mar 13 10:25:18 2009 Received: (at control) by emacsbugs.donarmstrong.com; 13 Mar 2009 17:25:18 +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=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 n2DHPFGq002673 for ; Fri, 13 Mar 2009 10:25:16 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LiB8E-0007WV-Ry; Fri, 13 Mar 2009 13:25:14 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18874.38650.797222.437733@fencepost.gnu.org> Date: Fri, 13 Mar 2009 13:25:14 -0400 From: Glenn Morris To: control Subject: control message severity 2623 minor tags 2600 moreinfo reassign 2655 spam reassign 2658 emacs,ns severity 2659 minor reassign 2660 spam From mod-submit@uni-berlin.de Sun Mar 15 18:32:06 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Mar 2009 01:32:06 +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=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2G1W2uC001657 for ; Sun, 15 Mar 2009 18:32:03 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lj1gQ-0002Xg-0a for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 21:32:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lj1gL-0002Vu-8y for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 21:32:01 -0400 Received: from [199.232.76.173] (port=48450 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lj1gK-0002Vn-S2 for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 21:31:56 -0400 Received: from moderators.individual.net ([130.133.4.7]:54722) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lj1gK-0001CT-FU for bug-gnu-emacs@gnu.org; Sun, 15 Mar 2009 21:31:56 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]) by moderators.individual.net (Exim 4.69) for gnu-emacs-bug@moderators.individual.net with esmtp (envelope-from ) id <1Lj1gK-0006vL-0C>; Mon, 16 Mar 2009 02:31:56 +0100 Received: from relay1.zedat.fu-berlin.de ([130.133.4.67]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for gnu-emacs-bug@moderators.individual.net with esmtp (envelope-from ) id <1Lj1gJ-0008RZ-76>; Mon, 16 Mar 2009 02:31:55 +0100 Received: from curry.zedat.fu-berlin.de ([130.133.1.2]) by relay1.zedat.fu-berlin.de (Exim 4.69) for gnu-emacs-bug@moderators.individual.net with esmtp (envelope-from ) id <1Lj1gJ-0007rQ-5n>; Mon, 16 Mar 2009 02:31:55 +0100 Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Mon, 16 Mar 2009 02:31:55 +0100 (MET) To: gnu-emacs-bug@moderators.individual.net Path: individual.net!not-for-mail From: Miles Bader Newsgroups: gnu.emacs.bug Subject: Re: bug#2659: 23.0.91; set-face-attribute :height float on a Mac Date: Mon, 16 Mar 2009 10:31:54 +0900 Lines: 19 Message-ID: <87ab7m9rsl.fsf@catnip.gol.com> References: <9abbd5730903130811qfc010di2c45ab84f511d329@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Orig-X-Trace: individual.net s1amSXX9Z6p9pS0kaPCg0wfveIZsYFJqJuiIMHGpGCZc4Ozvyt Cancel-Lock: sha1:aVMyf2rWS8U46SPyRlrdPydw7aU= sha1:VqUM2aKmPwgslH3LtYSNp2IsqXw= System-Type: x86_64-unknown-linux-gnu X-Originating-IP: 130.133.1.2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Stefan Monnier writes: >> Debugger entered--Lisp error: (error "Invalid default face height" 1.1) > > This says that you can't specify "1.1 times the underlying face" because > the default face as no underlying face. Note that because the default face height is always absolute and fixed, it should be easy enough to do what you want by retrieving the current height and multiplying it yourself. e.g. (set-face-attribute 'default nil :height (truncate (* (face-attribute 'default :height) 1.1))) -Miles -- Virtues, n. pl. Certain abstentions. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 03 01:47:36 2011 Received: (at 2659-done) by debbugs.gnu.org; 3 Feb 2011 06:47:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pksyd-0005QH-Rl for submit@debbugs.gnu.org; Thu, 03 Feb 2011 01:47:36 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pksyb-0005Q6-N8 for 2659-done@debbugs.gnu.org; Thu, 03 Feb 2011 01:47:34 -0500 Received: from localhost ([127.0.0.1]:53879) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pkt6m-0005fT-5h; Thu, 03 Feb 2011 01:56:00 -0500 From: Glenn Morris To: 2659-done@debbugs.gnu.org Subject: Re: bug#2659: 23.0.91; set-face-attribute :height float on a Mac References: <9abbd5730903130811qfc010di2c45ab84f511d329@mail.gmail.com> <87ab7m9rsl.fsf@catnip.gol.com> X-Spook: pre-emptive COSCO Jiang Zemin Rubin FSF Saddam Hussein X-Ran: =W1T2Jc6|C&EIIpZqsD6)17Mo}14XcEXP;tL2i$\(i~rZ#u8(<&zD`{;x=#Qf\0$H5'etr X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 03 Feb 2011 01:55:59 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 2659-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Version: 23.3 Tried to improve the doc-string of set-face-attribute, and the error message. The lispref already seems pretty clear on this. From unknown Thu Aug 14 21:46:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Mar 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator