From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: A question about face-all-attributes Date: Thu, 24 Oct 2013 18:47:59 +0800 Message-ID: References: <83ob6ghu2x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382611692 1587 80.91.229.3 (24 Oct 2013 10:48:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 10:48:12 +0000 (UTC) Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 12:48:18 2013 Return-path: Envelope-to: geh-help-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 1VZISe-0000mI-Ao for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 12:48:16 +0200 Original-Received: from localhost ([::1]:53783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZISd-00064o-US for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 06:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZISS-000649-2H for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 06:48:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZISQ-0000wN-OM for help-gnu-emacs@gnu.org; Thu, 24 Oct 2013 06:48:04 -0400 Original-Received: from mail-ie0-x230.google.com ([2607:f8b0:4001:c03::230]:41823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZISO-0000vi-7W; Thu, 24 Oct 2013 06:48:00 -0400 Original-Received: by mail-ie0-f176.google.com with SMTP id u16so3441590iet.21 for ; Thu, 24 Oct 2013 03:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=zMiP+FW0mFaewTtBU/PYK+DB8tm86OZszSZJOiz+JaY=; b=ViTs4iXVIfnw8xYiDl3pqFHiiwDuC3VbstS3uy4v3hZSltHaTU5SBE2B/M9o3Wht/P 77HcRjuE7CLeNhZz1pMHx5cpjr25QwnRKeWwSr3UolgZlOxY+dDgZfUu3WudbLALbB2P cMtEI7GDqQd97ib1lR8NaWAIL3FfUP4ZfktX/Di8Vo5xnTAP5Ylnpz7B6Ysc3zN6HDp+ MDHS0awT9byUxl9TXjVH/2mniYn8XxhkXscc2OL6Uf6cqbszMMdwzURD5M0Ut4zMzAfY KTeVQOCalDvPDee8VmiIDFBt09iBM3REc67t6xkcBfOCwmX7ygRevo/UtPC6F+9xDbaH EbHg== X-Received: by 10.42.227.72 with SMTP id iz8mr1166465icb.27.1382611679468; Thu, 24 Oct 2013 03:47:59 -0700 (PDT) Original-Received: by 10.42.133.72 with HTTP; Thu, 24 Oct 2013 03:47:59 -0700 (PDT) In-Reply-To: <83ob6ghu2x.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94187 Archived-At: On Wed, Oct 23, 2013 at 11:42 PM, Eli Zaretskii wrote: >> (face-all-attributes 'default) >> =3D> >> ((:family . unspecified) (:foundry . unspecified) (:width . >> unspecified) (:height . unspecified) (:weight . unspecified) (:slant . >> unspecified) (:underline . unspecified) (:overline . unspecified) >> (:strike-through . unspecified) (:box . unspecified) (:inverse-video . >> unspecified) (:foreground . unspecified) ...) >> >> But: >> >> (describe-face 'default) >> =3D> >> Family: Ubuntu Mono >> Foundry: unknown >> Width: normal >> Height: 128 >> ... >> >> Why are the two results different? I expected similar results from >> them. > > If the results were similar, the existence of describe-face would not > have been justified. It exists to show you what the default > attributes really will be. Thanks, Eli. But in (info "(elisp) Face Attributes"): An =E2=80=98unspecified=E2=80=99 attribute tells Emacs to refer instead t= o a parent face; or, failing that, to an underlying face. The =E2=80=98default=E2= =80=99 face must specify all attributes. But all the attributes returned by face-all-attributes are =E2=80=98unspecified=E2=80=99, why? --=20 Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/