From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6767: 24.0.50; face-all-attributes returns unspecified for everything Date: Sat, 31 Jul 2010 14:11:27 +0300 Message-ID: <837hkb3nz4.fsf@gnu.org> References: <4C53EEB4.8010602@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1280576282 26499 80.91.229.12 (31 Jul 2010 11:38:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2010 11:38:02 +0000 (UTC) Cc: 6767@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 31 13:38:01 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OfAO8-0006hS-NY for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jul 2010 13:38:01 +0200 Original-Received: from localhost ([127.0.0.1]:51462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfAO8-0006Vl-2X for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jul 2010 07:38:00 -0400 Original-Received: from [140.186.70.92] (port=45975 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfAO2-0006Vg-0C for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2010 07:37:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfAO0-0003U7-NF for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2010 07:37:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56277) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfAO0-0003U1-Lt for bug-gnu-emacs@gnu.org; Sat, 31 Jul 2010 07:37:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Of9z0-0006rw-1I; Sat, 31 Jul 2010 07:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Jul 2010 11:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6767-submit@debbugs.gnu.org id=B6767.128057469026394 (code B ref 6767); Sat, 31 Jul 2010 11:12:01 +0000 Original-Received: (at 6767) by debbugs.gnu.org; 31 Jul 2010 11:11:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Of9yT-0006rf-Dw for submit@debbugs.gnu.org; Sat, 31 Jul 2010 07:11:29 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Of9yP-0006rZ-Uw for 6767@debbugs.gnu.org; Sat, 31 Jul 2010 07:11:26 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L6F004005Q5HD00@a-mtaout23.012.net.il> for 6767@debbugs.gnu.org; Sat, 31 Jul 2010 14:11:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.19.236]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6F000FV5R1IAB0@a-mtaout23.012.net.il>; Sat, 31 Jul 2010 14:11:26 +0300 (IDT) In-reply-to: <4C53EEB4.8010602@swipnet.se> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 31 Jul 2010 07:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39093 Archived-At: > Date: Sat, 31 Jul 2010 11:36:52 +0200 > From: Jan Dj=C3=A4rv > Cc:=20 >=20 > In *scratch*: > (face-attribute 'italic :slant) > italic ;; Good. >=20 > (face-italic-p 'italic) > (italic oblique) ;; Fine. >=20 > (assq :slant (face-all-attributes 'italic)) > (:slant . unspecified) ;; Say what?? >=20 > In fact face-all-attributes gives me unspecified for all attributes= in > the faces I tried (about 5), including the default face. This happens because face-new-frame-defaults has `unspecified' for al= l the attributes of `italic' face (and all other faces as well). Try (face-all-attributes 'italic (selected-frame)) and you will get what you expect. > Did I misunderstand how face-all-attributes work? I don't know, but it sounds like the doc string is at least misleadin= g in this regard. OTOH, this function is not used anywhere in Emacs, s= o it could be buggy. What is your use-case, exactly?