From unknown Thu Aug 14 21:46:58 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#5536 <5536@debbugs.gnu.org> To: bug#5536 <5536@debbugs.gnu.org> Subject: Status: set-face-attribute doesn't work correctly Reply-To: bug#5536 <5536@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:46:58 +0000 retitle 5536 set-face-attribute doesn't work correctly reassign 5536 emacs submitter 5536 sj severity 5536 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 06 14:09:53 2010 Received: (at submit) by debbugs.gnu.org; 6 Feb 2010 19:09:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ndq2T-00016D-Cv for submit@debbugs.gnu.org; Sat, 06 Feb 2010 14:09:53 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ndmbd-0007Bl-MQ for submit@debbugs.gnu.org; Sat, 06 Feb 2010 10:29:58 -0500 Received: from mx10.gnu.org ([199.232.76.166]:40847) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NdmbZ-0001i5-1R for submit@debbugs.gnu.org; Sat, 06 Feb 2010 10:29:53 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdmbY-0007hr-4v for submit@debbugs.gnu.org; Sat, 06 Feb 2010 10:29:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00, DNS_FROM_RFC_POST,HTML_MESSAGE,UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:34685) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NdmbX-0007hh-U0 for submit@debbugs.gnu.org; Sat, 06 Feb 2010 10:29:52 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdmbX-0004Fp-Gd for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 10:29:51 -0500 Received: from [199.232.76.173] (port=43620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdmbX-0004FT-4E for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 10:29:51 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdmbW-0007h7-5B for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 10:29:50 -0500 Received: from mail-yw0-f189.google.com ([209.85.211.189]:55661) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdmbV-0007gt-Pj for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 10:29:50 -0500 Received: by ywh27 with SMTP id 27so4253606ywh.1 for ; Sat, 06 Feb 2010 07:29:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=+vzfTA6jb+eLxi+qh9Tok+qKwaGC9hyQenQyj+PMYf0=; b=o2RDXszIcMuYKjI6i2EGNhPJ0xDR8C/dhWEQZBylDNNMNm3JrDb15T4x8yrQmJY1xU nWuyHRdVR44YIg3OnBmksBBsAmnuLdkAcgCWvn5vPL27LXYPPe2XE+YOobJLgLBvYdwK WpQvcKqMP3FtVp1qCdYTjoWPuljH6WvaHKpBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Abi82soUHFgwbhP7qsvBerK0FuDYhp1BA+mMfAQh5hkhNLS4V+3usa7YOnMYFcQM33 1IWmFj/mp9b0JuZWs89vDO+/OQPrcEctpF0782bBopDkWhvH7NgDwTzCDK+01Xp9Bc75 ywzjmhq54QJzn4rzNhhcp6GqokxkJYT7y8aww= MIME-Version: 1.0 Received: by 10.91.163.4 with SMTP id q4mr3828576ago.13.1265470187455; Sat, 06 Feb 2010 07:29:47 -0800 (PST) Date: Sun, 7 Feb 2010 00:29:47 +0900 X-Google-Sender-Auth: 6bd1d3697febeb39 Message-ID: <91cd3e1b1002060729l7f3fc7d0m4a78f3e94c320da3@mail.gmail.com> Subject: set-face-attribute doesn't work correctly From: sj To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=0016e640d4c8ff43f5047ef03c73 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 06 Feb 2010 14:09:53 -0500 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: -5.9 (-----) --0016e640d4c8ff43f5047ef03c73 Content-Type: text/plain; charset=ISO-8859-1 symptom: (custom-face-attributes-get 'font-lock-keyword-face nil) ==> (:foreground "Cyan1") (set-face-attribute 'font-lock-keyword-face nil :family "verdana") (custom-face-attributes-get 'font-lock-keyword-face nil) ==> (:foreground "Cyan1" :family "verdana") -------------------------------------------------------------- (set-face-attribute 'font-lock-keyword-face nil :family 'unspecified) (custom-face-attributes-get 'font-lock-keyword-face nil) ==> (:foreground "Cyan1" :family "verdana") ;; wasn't removed -------------------------------------------------------------- my solution: modify faces.el file =============================================================== 738c738 < (when (stringp family) --- > (when (or (stringp family)(eq family 'unspecified)) 741c741 < (when (stringp foundry) --- > (when (or (stringp foundry)(eq foundry 'unspecified)) =============================================================== --0016e640d4c8ff43f5047ef03c73 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable symptom:
(custom-face-attributes-get 'font-lock-keyword-face nil)=A0=3D=3D> (:foreground "Cyan1")

(set-face-attribute &= #39;font-lock-keyword-face nil
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 :family &qu= ot;verdana")

(custom-face-attributes-get 'font-lock-keyword-face nil)
=A0=3D= =3D> (:foreground "Cyan1" :family "verdana")

= --------------------------------------------------------------

(set-= face-attribute 'font-lock-keyword-face nil
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 :family 'unspecified)

(custom-face= -attributes-get 'font-lock-keyword-face nil)
=A0=3D=3D> (:foregro= und "Cyan1" :family "verdana")=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 ;; wasn't removed

---------------------------------= -----------------------------


my solution:
modify faces.el file
=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
738c738
<=A0=A0=A0=A0=A0=A0 (when (stringp family)---
>=A0=A0=A0=A0=A0=A0 (when (or (stringp family)(eq family 'un= specified))
741c741
<=A0=A0=A0=A0=A0=A0 (when (stringp foundry)
---
>=A0= =A0=A0=A0=A0=A0 (when (or (stringp foundry)(eq foundry 'unspecified))=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

--0016e640d4c8ff43f5047ef03c73-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 06 23:15:18 2010 Received: (at 5536) by debbugs.gnu.org; 7 Feb 2010 04:15:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NdyYI-00072T-MD for submit@debbugs.gnu.org; Sat, 06 Feb 2010 23:15:18 -0500 Received: from pantheon-po35.its.yale.edu ([130.132.50.83]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NdyY4-00071q-E0 for 5536@debbugs.gnu.org; Sat, 06 Feb 2010 23:15:17 -0500 Received: from furry (bb116-15-9-83.singnet.com.sg [116.15.9.83]) (authenticated bits=0) by pantheon-po35.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o174Ewqg004115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 6 Feb 2010 23:15:00 -0500 Received: by furry (Postfix, from userid 1000) id 1BD72C05D; Sat, 6 Feb 2010 23:14:57 -0500 (EST) From: Chong Yidong To: sj Subject: Re: set-face-attribute doesn't work correctly Date: Sat, 06 Feb 2010 23:14:57 -0500 Message-ID: <87eikxwuke.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5536 Cc: 5536@debbugs.gnu.org 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: -2.6 (--) > (custom-face-attributes-get 'font-lock-keyword-face nil) > ==> (:foreground "Cyan1") > (set-face-attribute 'font-lock-keyword-face nil > :family "verdana") > (custom-face-attributes-get 'font-lock-keyword-face nil) > ==> (:foreground "Cyan1" :family "verdana") > (set-face-attribute 'font-lock-keyword-face nil > :family 'unspecified) > (custom-face-attributes-get 'font-lock-keyword-face nil) > ==> (:foreground "Cyan1" :family "verdana") > > my solution: > modify faces.el file Thanks. Your patch looks reasonable, and I've checked it in. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 06 23:15:29 2010 Received: (at control) by debbugs.gnu.org; 7 Feb 2010 04:15:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NdyYS-00072d-Rj for submit@debbugs.gnu.org; Sat, 06 Feb 2010 23:15:29 -0500 Received: from pantheon-po35.its.yale.edu ([130.132.50.83]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NdyYF-00072L-AR for control@debbugs.gnu.org; Sat, 06 Feb 2010 23:15:27 -0500 Received: from furry (bb116-15-9-83.singnet.com.sg [116.15.9.83]) (authenticated bits=0) by pantheon-po35.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o174F9Oe004136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 6 Feb 2010 23:15:11 -0500 Received: by furry (Postfix, from userid 1000) id 14B8AC05D; Sat, 6 Feb 2010 23:15:08 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5536 Date: Sat, 06 Feb 2010 23:15:08 -0500 Message-ID: <87bpg1wuk3.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control 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: -2.6 (--) close 5536 thanks From unknown Thu Aug 14 21:46:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Mar 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long 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