From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: describe all faces at point? Date: Fri, 23 Sep 2022 19:05:42 +0300 Message-ID: <83mtaqoz3d.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27732"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 23 18:10:40 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oblGC-00078I-AJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 18:10:40 +0200 Original-Received: from localhost ([::1]:57018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oblG9-00089q-Vg for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Sep 2022 12:10:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oblBp-0005eM-22 for help-gnu-emacs@gnu.org; Fri, 23 Sep 2022 12:06:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oblBo-0002FC-5u for help-gnu-emacs@gnu.org; Fri, 23 Sep 2022 12:06:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5S7V21tdDoWbCWVvaO4RaUt9AVWBuHLWf6GLKNV1czo=; b=bFFlnWJnYji9 rqt6w6aKZBlwYtUciym+p/bIgugegpv0M8fW0zYrcIyyfzhn24qdneFgCC8I5EYeyR5HpD7vLKTgH 1STpdQ9CUTZrVqro1f3N0PSt/9J1bc6H0MNNLeN40dydp+yTFXlHn3PVIIsfkQ1T4KynFRlGSaT9r i1n5DaFA2KX63zKs2RtotzRYkMGG4jzoCmEVyeOpyxcXx5G4CcR7DUiz4WV3Xy7Wkf1+pOEXe9ZN+ S+VXjCvsZmMZRJFHHHHTlHZTakdBUxJiAp+suVHfwKyetU9LD/ZDnQAvBmEClO1gHqIuvfJYOp7hN dWhFmyIK5f2mFPmCEotduw==; Original-Received: from [87.69.77.57] (port=2394 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oblBT-0001HM-6E for help-gnu-emacs@gnu.org; Fri, 23 Sep 2022 12:06:07 -0400 In-Reply-To: (message from Sam Steingold on Fri, 23 Sep 2022 10:50:41 -0400) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139619 Archived-At: > From: Sam Steingold > Date: Fri, 23 Sep 2022 10:50:41 -0400 > > When I do `M-x describe-face`, the default face is, according to the doc, > > "the faces of the character after point" > > However, looking at the `*Fancy Diary Entries*` buffer, I see many > different colors, and `M-x describe-face` offers the `diary-button` as > the default for _some_ characters that have _different_ colors (and the > `sample` in the `*Help*` buffer for one of them does _not_ match its > appearance). > > Moreover, `(get-char-property (point) 'face)` returns `diary-button` for > both of those characters and `(face-at-point nil t)` returns > `(diary-button)` for them too. > > So, how come two characters in the same buffer have different colors but > the same faces? The appearance of a character on display in Emacs gets the face information from more than a single source, see the node "Displaying Faces" in the ELisp reference manual for the gory details. If you tell how does one get the "*Fancy Diary Entries*" buffer with what you see there, I could perhaps give a more concrete answer to your question.