From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.bugs Subject: bug#45920: 28.0.50; set-face-attribute cannot read :family when different :weight exist Date: Sat, 16 Jan 2021 22:09:54 +0200 Message-ID: <875z3wprsd.fsf@protesilaos.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29848"; mail-complaints-to="usenet@ciao.gmane.io" To: 45920@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 16 21:11:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0ruh-0007Rt-Hi for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jan 2021 21:11:11 +0100 Original-Received: from localhost ([::1]:52926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0rug-0003Qs-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jan 2021 15:11:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ruZ-0003Pz-Od for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 15:11:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0ruY-0003SN-04 for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 15:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l0ruX-0006zo-R9 for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 15:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Protesilaos Stavrou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jan 2021 20:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45920 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161082781726838 (code B ref -1); Sat, 16 Jan 2021 20:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2021 20:10:17 +0000 Original-Received: from localhost ([127.0.0.1]:44083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0rto-0006yo-LV for submit@debbugs.gnu.org; Sat, 16 Jan 2021 15:10:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0rtk-0006yc-IO for submit@debbugs.gnu.org; Sat, 16 Jan 2021 15:10:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0rtk-0003Fn-Ds for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 15:10:12 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:59581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0rtg-0002wX-I5 for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2021 15:10:12 -0500 X-Originating-IP: 94.46.225.161 Original-Received: from kronos (unknown [94.46.225.161]) (Authenticated sender: public@protesilaos.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2DF6E1C0002 for ; Sat, 16 Jan 2021 20:10:01 +0000 (UTC) Received-SPF: none client-ip=217.70.183.197; envelope-from=info@protesilaos.com; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198034 Archived-At: Dear maintainers, I have noticed that setting fonts via 'set-face-attribute' works as intended except in the following scenario (on 'emacs -Q'): ;; Sample 1 (set-face-attribute 'default nil :family "Source Code Pro" :weight 'light) ;; Sample 2 (set-face-attribute 'default nil :family "Hack" :weight 'normal) If you evaluate sample 1, you will get the desired behaviour. Namely, the font family for the default face is the one specified, as is the typographic weight. Now if you proceed to evaluate sample 2, you will notice that only the weight gets updated. The family continues to be that of sample 1. At this point, to get the family of sample 2, you need to evaluate sample 2 one more time. I tried various combinations and my impression is that the problem occurs when the :weight properties are different. Other properties, such as :height, do not exhibit this behaviour. Can you reproduce this on your end? All the best, Protesilaos -- Protesilaos Stavrou protesilaos.com