From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14629: 24.3.50; (elisp) `Face Attributes', :font -> "font object" Date: Mon, 17 Jun 2013 09:37:56 -0700 (PDT) Message-ID: <8519799d-4c07-4eb2-850e-95f90af49ca0@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1371487151 11912 80.91.229.3 (17 Jun 2013 16:39:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 16:39:11 +0000 (UTC) To: Kenichi Handa , 14629@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 17 18:39:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UocST-0006wg-Pb for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2013 18:39:10 +0200 Original-Received: from localhost ([::1]:59321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UocST-0007Lb-Ec for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2013 12:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UocSP-0007J3-1n for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 12:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UocSN-0006tj-MH for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 12:39:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UocSN-0006tf-Ge for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 12:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UocSM-0007Du-KB for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 12:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2013 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14629-submit@debbugs.gnu.org id=B14629.137148708827665 (code B ref 14629); Mon, 17 Jun 2013 16:39:02 +0000 Original-Received: (at 14629) by debbugs.gnu.org; 17 Jun 2013 16:38:08 +0000 Original-Received: from localhost ([127.0.0.1]:51014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UocRT-0007C8-Mt for submit@debbugs.gnu.org; Mon, 17 Jun 2013 12:38:08 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:41490) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UocRQ-0007BS-DK for 14629@debbugs.gnu.org; Mon, 17 Jun 2013 12:38:05 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5HGbvJb029099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Jun 2013 16:37:58 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HGbvZi025405 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Jun 2013 16:37:57 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HGbvvj022400; Mon, 17 Jun 2013 16:37:57 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75261 Archived-At: [Resending - forgot to include the bug list in my reply.] > > The description of face attribute :font is incomprehensible. >=20 > > It says that the value should be a "font object". What is that, you > > ask? Well, it says to see node `Font Selection' to find out. But > > that node says nothing about a "font object". >=20 > I've just committed the attached fix. Thanks for working on this so promptly. > > I have no idea what it is, that is, what possible values attribute > > :font can have. I know about the frame parameter `font', whose > > value is an XLFD string (AFAICT). But I have no idea what :font > > can be set to. >=20 > You can also specify a font name, You say "also". In addition to what? What else can one provide here, besides a font name? > which is written in Info as below: >=20 > When specifying this attribute using `set-face-attribute' But I am not using `set-face-attribute'. What then? This node is about face attributes generally. I'm specifying them this way, for instance: (propertize MYFONT 'face (list :foundry FOUNDRY :family FAMILY :weight WEIGHT :slant SLANT :width WIDTH)) That uses text property `face', specifying certain face attributes, which this node presumably describes. And in general it works. Text property `face' is no doubt not the same thing as a face. But what about a face attribute? Doesn't a face attribute apply to both a face and the `face' text property? And again, using the attributes with a `face' text property does work for some of the attributes. Is it not a bug that it does not work for all of them? If not, it is a doc bug that we do not specify which face attributes you can use with a `face' text property. > (*note Attribute Functions::), you may also supply a font spec, What is a font spec? Is it something like the XLFD string above? > a font entity, What is a font entity? > or a string. What kind of string? What's the format? > Emacs converts such values to an appropriate font object, As I mentioned before, "font object" seems to be defined nowhere - at least not in the node cross-referenced for it. What is a font object? > and stores that font object as the actual attribute > value. Beyond the doc, there is a real product bug - see #14634. In particular, attribute :font seems to have *no effect* when you do, for example, this: (propertize myfont 'face (list :font myfont)) > > Not only that, but if I try to guess from using > > `M-x customize-face', there is no `Font' attribute. There are > > only attributes `Font Family' and `Font Foundry'. >=20 > Ah, perhaps customize-face should be improved. Yes. But the problem seems to be greater than Customize. See above: attribute :font has no effect in at least some contexts (beyond Customize). It's not clear what contexts it actually has the documented effect. Is it only for `set-face-attribute'? That would mean that it does not apply to contexts such as using text property `face'. > =3D=3D=3D modified file 'doc/lispref/display.texi' Thanks for the patch, but sorry, but I do not see how it is relevant to this bug.