From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#14647: 24.3.50; doc of `set-face-font' Date: Fri, 01 Nov 2019 18:29:47 +0100 Message-ID: <87k18jwlmc.fsf@gnus.org> References: <4430da9a-9455-46dd-bc0d-1177123e147e@default> <87lhxmw0cj.fsf@building.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223628"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 14647@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 18:30:17 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 1iQaka-000w0h-4J for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 18:30:16 +0100 Original-Received: from localhost ([::1]:41680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQakZ-0000y0-0d for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 13:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQakO-0000xV-6H for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 13:30:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQakM-0003yw-VD for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 13:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQakM-0003xm-R4 for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 13:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQakM-0002yS-JK for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14647 X-GNU-PR-Package: emacs Original-Received: via spool by 14647-submit@debbugs.gnu.org id=B14647.157262939511368 (code B ref 14647); Fri, 01 Nov 2019 17:30:02 +0000 Original-Received: (at 14647) by debbugs.gnu.org; 1 Nov 2019 17:29:55 +0000 Original-Received: from localhost ([127.0.0.1]:57035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQakF-0002xE-0c for submit@debbugs.gnu.org; Fri, 01 Nov 2019 13:29:55 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:39958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQakD-0002x2-KJ for 14647@debbugs.gnu.org; Fri, 01 Nov 2019 13:29:54 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQak8-00007H-5q; Fri, 01 Nov 2019 18:29:51 +0100 In-Reply-To: <87lhxmw0cj.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Fri, 07 Feb 2014 23:05:32 -0800") 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:170642 Archived-At: 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. >> 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? > > Yeah. It looks like it's the latter, so I've altered the documentation in the manual. >> 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. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no