From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: What is a default font? Date: Thu, 05 Dec 2019 17:03:18 +0200 Message-ID: <83eexiizm1.fsf@gnu.org> References: <4c86b07f-175d-f6cf-171a-b58474ab717a@gmx.at> <83tv6ghxxk.fsf@gnu.org> <87h82f6fv1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="74379"; mail-complaints-to="usenet@blaine.gmane.org" Cc: rudalics@gmx.at, emacs-devel@gnu.org To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 05 16:03:39 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icsfL-000JEH-1I for ged-emacs-devel@m.gmane.org; Thu, 05 Dec 2019 16:03:39 +0100 Original-Received: from localhost ([::1]:55952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icsfJ-0001Ch-Fq for ged-emacs-devel@m.gmane.org; Thu, 05 Dec 2019 10:03:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45400) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icsf7-0001Bk-Tl for emacs-devel@gnu.org; Thu, 05 Dec 2019 10:03:27 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1icsf6-0004KT-6U; Thu, 05 Dec 2019 10:03:25 -0500 Original-Received: from [176.228.60.248] (port=3508 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1icsf5-0004rh-2d; Thu, 05 Dec 2019 10:03:23 -0500 In-reply-to: <87h82f6fv1.fsf@gmail.com> (message from =?utf-8?B?xaB0xJtw?= =?utf-8?B?w6FuIE7Em21lYw==?= on Wed, 04 Dec 2019 20:38:26 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243155 Archived-At: > From: Štěpán Němec > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Wed, 04 Dec 2019 20:38:26 +0100 > > @defun default-font-width > This function returns the average width in pixels of the font used by > -the current buffer's default face. > +the selected frame's default face. > @end defun Thanks. However, it is incorrect not to mention the current buffer at all, because these functions are sensitive to face remapping, which is a buffer-local feature. I think Stefan and Martin in their followup messages described the situation correctly. I do agree that documentation could use some clarification in this area.