From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57962: 29.0.50; Odd font choices Date: Fri, 14 Oct 2022 16:00:18 +0300 Message-ID: <83a65y8srh.fsf@gnu.org> References: <87edw5adz1.fsf@gnus.org> <87h711ii4m.fsf@yahoo.com> <871qs59fds.fsf@gnus.org> <87tu46aazr.fsf@gnus.org> <83h7068v7g.fsf@gnu.org> <878rlia9a0.fsf@gnus.org> <83czau8tu7.fsf@gnu.org> <87r0za8tbf.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 57962@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 15:03:19 2022 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 1ojKLP-0005jM-12 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 15:03:19 +0200 Original-Received: from localhost ([::1]:58130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojKLN-0008IH-It for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 09:03:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojKJD-0007fr-Hc for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 09:01:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojKJC-0001m8-9M for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 09:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojKJC-0002RI-1G for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 09:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 13:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57962 X-GNU-PR-Package: emacs Original-Received: via spool by 57962-submit@debbugs.gnu.org id=B57962.16657524439341 (code B ref 57962); Fri, 14 Oct 2022 13:01:02 +0000 Original-Received: (at 57962) by debbugs.gnu.org; 14 Oct 2022 13:00:43 +0000 Original-Received: from localhost ([127.0.0.1]:36189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojKIt-0002QZ-5i for submit@debbugs.gnu.org; Fri, 14 Oct 2022 09:00:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojKIo-0002Q8-A3 for 57962@debbugs.gnu.org; Fri, 14 Oct 2022 09:00:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojKIi-0001jU-E7; Fri, 14 Oct 2022 09:00:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=W1kMYNFieHNiXD32lKe2tdUBneYIudSlRLW6vdkiWNw=; b=T19O1JBqEGcT RJE1DfWlaRHqof8uZ9QjzZj05VsNJKL79nnjYQTrL3tr9HhGOaUClkr1YV/iMRo2h2cY3odWveqGK rDHcOCycShQbvD7aBEF032w8pjRgbivD8cVoChjEY9puP649ECadkb+a81uAoRWWK1K54iMKSCtIK 6MtD2nyIzQt0pjn+6W3RrQNHkXQHVj2Aw4VtpAVhtLmwCSYotmrcTshY176ylFmEuPEzKKmOQ6qN8 Am06YMAhB84o5lE8rr0aqUOo7Ah0mVLAmrQbDzamhTXCy1dJsm6qKku4yUaf731Ja59xklFtt3Md9 5kM1bkADQu0ifOIp71lvgw==; Original-Received: from [87.69.77.57] (port=4728 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojKIh-0003Uw-FI; Fri, 14 Oct 2022 09:00:31 -0400 In-Reply-To: <87r0za8tbf.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 14 Oct 2022 14:48:20 +0200) 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:245436 Archived-At: > From: Lars Ingebrigtsen > Cc: luangruo@yahoo.com, 57962@debbugs.gnu.org > Date: Fri, 14 Oct 2022 14:48:20 +0200 > > >> (defface fixed-pitch > >> '((t :family "Monospace" :spacing mono)) > >> "The basic fixed-pitch face." > >> :group 'basic-faces) > > > > "No effect" in the sense that if the default face uses a proportional > > font, fixed-pitch defined as above still uses a proportional font? > > It makes no difference either way, whether `default' uses a fixed-width > font or not -- the `fixed-pitch' font uses "Monospace", which is a > fixed-width font. But it produces a font different from the default face's font, which AFAIU was what you wanted? That's what happens for me: if I start Emacs with "emacs -fn FOO" where FOO is a variable-pitch font, then using the defface form I suggested makes fixed-pitch use a monospaced font. > > (defface fixed-pitch > > `((t :font ,(font-spec :spacing 'M))) > > "The basic fixed-pitch face." > > :group 'basic-faces) > > That leads to: > > Don't know how to purify: # I only tried that in a running Emacs session, and with a face whose name is different from fixed-pitch. I haven't tried bootstrapping with the above in faces.el. I'm sure we can avoid the problem, if the effect is what we want: for example, we could have the defface in startup.el or something.