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.bugs Subject: bug#14647: 24.3.50; doc of `set-face-font' Date: Sat, 02 Nov 2019 12:49:04 +0200 Message-ID: <834kzmk0yn.fsf@gnu.org> References: <4430da9a-9455-46dd-bc0d-1177123e147e@default> <87lhxmw0cj.fsf@building.gnus.org> <87k18jwlmc.fsf@gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="87607"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 14647@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 02 11:58:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iQr6t-000MhD-1D for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 11:58:23 +0100 Original-Received: from localhost ([::1]:46410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQr6r-0006Se-UA for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 06:58:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45788) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQr4c-0005WJ-L2 for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 06:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQqyq-0005MD-8I for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 06:50:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQqyq-0005Ko-1R for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 06:50:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQqyn-0001KA-I2 for bug-gnu-emacs@gnu.org; Sat, 02 Nov 2019 06:50: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: Sat, 02 Nov 2019 10:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14647 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 14647-submit@debbugs.gnu.org id=B14647.15726917495008 (code B ref 14647); Sat, 02 Nov 2019 10:50:01 +0000 Original-Received: (at 14647) by debbugs.gnu.org; 2 Nov 2019 10:49:09 +0000 Original-Received: from localhost ([127.0.0.1]:58237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQqxw-0001Ii-Fw for submit@debbugs.gnu.org; Sat, 02 Nov 2019 06:49:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQqxu-0001IE-49 for 14647@debbugs.gnu.org; Sat, 02 Nov 2019 06:49:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQqxo-0000Vo-IX; Sat, 02 Nov 2019 06:49:00 -0400 Original-Received: from [176.228.60.248] (port=1517 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQqxm-0001Ii-QE; Sat, 02 Nov 2019 06:48:59 -0400 In-reply-to: <87k18jwlmc.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 01 Nov 2019 18:29:47 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170785 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 01 Nov 2019 18:29:47 +0100 > Cc: 14647@debbugs.gnu.org > > Lars Ingebrigtsen writes: > > > Drew Adams writes: > > > >> 1. Neither the Elisp manual (node `Attribute Functions') nor the doc > >> string says what form the string FONT must or may take. > > > > Good question. The function is barely used in the Emacs source code > > tree. The only usage I could find that set it to something was this: > > > > (defvar gamegrid-font "-*-courier-medium-r-*-*-*-140-100-75-*-*-iso8859-*" > > "Name of the font used in X mode.") > > But it's basically any string that describes a font on your system, > depending on what font system you have. So "futura:size=20" works fine, > too. That's inaccurate. The function accepts any form of the :font attribute, including font objects etc., but this is a command, and interactively it only allows strings. Also, "futura:size=20" might not work on MS-Windows, where these forms are emulated by Emacs (since there's no Fontconfig); you may need to use "Futura-20" instead. > >> 2. The manual says that this command sets the :font attribute. The doc > >> string says instead that it sets attributes :family, :foundry, :width, > >> :height, :weight, and :slant. Which is it? Both, actually. > > Yeah. > > It looks like it's the latter, so I've altered the documentation in the > manual. I've now altered the docs again to say that :font is set, and the other attributes are also set. > >> 3. #1 is all the more imporatnt because the doc string of `x-list-fonts' > >> says that it returns a list of strings that are "suitable as arguments > >> to `set-face-font'. Really? Just what kind of strings are so suitable? > >> > >> I think, but am not sure, that FONT must be in XLFD form. Whatever the > >> acceptable form(s), the doc needs to spell this out. > > I don't think so -- we aren't told what the form is, because that seems > unnecessary. If we're curious for some reason, we can just call the > function. The various forms are documented in the Emacs manual, under "Fonts". A cross-reference leads there from the ELisp manual.