From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Incorrect font weight selected Date: Fri, 17 Dec 2021 22:25:32 +0100 Message-ID: <875yrmyk8q.fsf@wavexx.thregr.org> References: <87pmpv708h.fsf@wavexx.thregr.org> <83r1abcb93.fsf@gnu.org> <87y24jqahr.fsf@wavexx.thregr.org> <83ilvnc6z4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6927"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.5; emacs 29.0.50 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 17 22:53:29 2021 Return-path: Envelope-to: ged-emacs-devel@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 1myLAP-0001a8-1R for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 22:53:29 +0100 Original-Received: from localhost ([::1]:52644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myLAO-0003Cz-51 for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Dec 2021 16:53:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myL78-0000MC-IR for emacs-devel@gnu.org; Fri, 17 Dec 2021 16:50:06 -0500 Original-Received: from erc.thregr.org ([46.43.2.63]:47878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myL76-0005MG-OY; Fri, 17 Dec 2021 16:50:06 -0500 Original-Received: from [5.170.81.94] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1myL7E-001fl8-LU (envelope-from ); Fri, 17 Dec 2021 22:50:12 +0100 In-reply-to: <83ilvnc6z4.fsf@gnu.org> Received-SPF: pass client-ip=46.43.2.63; envelope-from=wavexx@thregr.org; helo=erc.thregr.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282239 Archived-At: On Fri, Dec 17 2021, Eli Zaretskii wrote: > Now I'm totally confused: what does "interactive" has to do with this? > If you put the same into your init.el, in a > after-make-frame-functions, doesn't it produce the same effect as > invoking it interactively after Emacs started? I debugged a little bit further with some extra details. To recap, I have: (set-face-attribute 'default nil :family "Iosevka" :height 140 :weight 'medium) somewhere at the end of my init.el. It has always been there. It is not in after-make-frame-functions. If I start emacs normally (not in daemon mode), the 'medium weight is selected correctly. When I start emacs with --daemon and then create a new frame via emacsclient, the 'regular weight is used for the new frame instead. This is new. Until the build from ~4 days ago, 'medium was selected correctly in both cases. In both cases, the correct font family and size is used: only the weight is incorrect. When I revert commit 1b2511fa2aed460120a36765ba16c14e355eef1d then the 'medium weight is selected correctly in both scenarios.