From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#52905: 29.0.50; "fixed-pitch" face doesn't respect the font in "default-frame-alist" Date: Thu, 30 Dec 2021 12:17:44 -0800 Message-ID: <87a6ghc0ev.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9391"; mail-complaints-to="usenet@ciao.gmane.io" To: 52905@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 30 21:18:18 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 1n31sN-0002Bn-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Dec 2021 21:18:17 +0100 Original-Received: from localhost ([::1]:52806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n31sM-00075M-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Dec 2021 15:18:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n31sA-00071U-Mi for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 15:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n31sA-0007tn-DS for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 15:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n31sA-00014k-7r for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 15:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Dec 2021 20:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52905 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.16408954744112 (code B ref -1); Thu, 30 Dec 2021 20:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Dec 2021 20:17:54 +0000 Original-Received: from localhost ([127.0.0.1]:54534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n31s2-00014F-Aa for submit@debbugs.gnu.org; Thu, 30 Dec 2021 15:17:54 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n31s0-000141-T4 for submit@debbugs.gnu.org; Thu, 30 Dec 2021 15:17:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n31s0-0006nn-Hk for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 15:17:52 -0500 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:43215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n31ry-0007sL-BC for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 15:17:52 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 3F8D33201B5C for ; Thu, 30 Dec 2021 15:17:47 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 30 Dec 2021 15:17:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=1waDqMf/FHkh8jQpmpRTnlUAjYrYilXkVAXnzLOtOI4=; b=TINLGmBA VreGViioOwWcFgwcHYJhTBsnuJ7j+lRfwtW867tarTpveTuDts0w6sFgmhzVKcIy 8woeUArV5+GwOjQy0022CcJZiPAhmUjjLA9unPwWKJDxQlG6uvuuRVG0/jrooIlS IOuK3WMRsaPIaqlEBJ9k1Pq+vHbnEw517celTFoB5R4SPN7/v3/Z7lw4D5pkub+Z lO+yFkMfCCP89wVS4M68flumgMle4b0Ite44hE9SFVU9KC9XvHsd85W0WR3dHuR5 SGieUbXq97b3HBPu+vhN9+2rW2uOAek9pzgRlbKrEsB3/P3geMRiMQgBCdWS6y62 xJMm2eBEkxAB4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=1waDqMf/FHkh8jQpmpRTnlUAjYrYi lXkVAXnzLOtOI4=; b=eZuN1yQBzTk9ImcApvYOxRAQsXgjDVoFMTp1Y+/uGXNHd GYoC2VhtrPKRSHu7wzWOFMfe6qO8yG3pLEYvlRg3nGxwunwB+XjsxSwhLcsDN/rA tyvI/2PsFVSbR7nUOZI4KhZ6mxg7U12eezEd8i6ahGFurJFK5Vl6i53ooysfXAZW pT5z3vE1RatzjJ1B+dEZNweTl/p4PE8/uB3T9AARjIPWpe3+QVEn5rQ+q2vNJyz0 cXn5S9i/iKhHIkwaLA4RD0UQ3b9Xd+dzXxKYmikLuSSatpy+pVQ87ni5AZNAG1U/ bjzaUdMmdSacjuy8xZccePzaCZ7nGUd+F4pu0W3Ew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddvfedgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghu tggvrdhnvghtqeenucggtffrrghtthgvrhhnpefgudfhvdeuheefudfhveehleejkefghe eiteevtefhiedtledviefggedvveejffenucffohhmrghinhepghhnuhdrohhrghenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguihhmrgessh gvtghrvghtshgruhgtvgdrnhgvth X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 30 Dec 2021 15:17:46 -0500 (EST) Received-SPF: pass client-ip=64.147.123.24; envelope-from=dima@secretsauce.net; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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:223448 Archived-At: Hi. I'm running a very recent emacs snapshot from 2021/12/19: 0bc2900bbcb. I'm on Debian GNU/Linux, using the GTK-based build on X. In the last few months I've been observing some font handling updates in emacs that cause an inconsistency with the way things are displayed. As suggested by the emacs documentation, I set the font I want by touching default-frame-alist. The docs are here: https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html I've had this setting in my .emacs for many years. Today this isn't respected everywhere. A recipe: emacs -Q --eval \ "(progn (setf (alist-get 'font default-frame-alist) \"-adobe-courier-medium-r-*-*-14-*-*-*-*-*-iso8859-*\") (org-mode) (insert \"abc\\n#+begin_\"))" Here I start up emacs without .emacs, but with some default-frame-alist setting. I enter org-mode and insert some text. Invoking C-u C-x = on any of "abc" tells me that no particular face is active there, and that my default font is being used. Invoking C-u C-x = on any of "#+begin_" tells me that the org-meta-line face is active there. This face ultimately derives from the fixed-pitch face, which uses a different monospace font: ftcrhb:-Bits-Bitstream Vera Sans Mono-regular-normal-normal-*-14-*-*-*-m-0-iso10646-1. But I already selected a monospaced font in default-frame-alist, so I expect to get the same font here, which was the case for many years. The fixed-pitch face is defined like this in faces.el: (defface fixed-pitch '((t :family "Monospace")) "The basic fixed-pitch face." :group 'basic-faces) I can "fix" this by resetting the fixed-pitch face to use the default: (defface fixed-pitch '((t)) "The basic fixed-pitch face." :group 'basic-faces) So is this a "bug"? Is this a documentation problem? Setting the default font to a monospace font, as described by the emacs docs should end up being picked up by the fixed-pitch face. Thanks!