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: Interactive function displaying face attributes Date: Tue, 09 Aug 2022 21:33:52 +0300 Message-ID: <8335e5tgfj.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20512"; 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 Tue Aug 09 20:35:58 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 1oLU58-00058g-0C for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Aug 2022 20:35:58 +0200 Original-Received: from localhost ([::1]:34162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLU56-0005uC-Vf for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Aug 2022 14:35:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLU3P-0005s5-0m for help-gnu-emacs@gnu.org; Tue, 09 Aug 2022 14:34:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLU3G-0007fU-Ku for help-gnu-emacs@gnu.org; Tue, 09 Aug 2022 14:34:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=A+yS4i0vkpWMt7Pw8vSwx9Tx/JvXwxdd46OdIUo/x2k=; b=p76Oh/RINqpwOa/qB9pC vJ3D1z7629aa+X0AxrHbQjigjMK/GgaLhN8rAyVA90K7WVnJOsEIHIGBUKNojFPqsOHfdLg1QXUqh Guce5Tuz+jwVULYFAzVV8sg2LsMWqUeVhCeLrFzZrwGvDQ5P2QLqmNOMMKhoT6SUYSmdJmo9JROjG WyhEtA73WI25HctcpfRAUgxHyQsuE2D4CMx4edehq3JV5lBeeVOoORa1ngQnRSeEcarlQiPWivjmG OAQkqjeIA9ToZpf9j9kfouitHC5HASAi4BcXzR4KCU3/SW9j/5zteIZupd2ZwQmp4q63b5GkVevHe Z883sJsElXx/AQ==; Original-Received: from [87.69.77.57] (port=4746 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 1oLU3F-0004wx-QZ for help-gnu-emacs@gnu.org; Tue, 09 Aug 2022 14:34:02 -0400 In-Reply-To: (message from carlmarcos--- via Users list for the GNU Emacs text editor on Tue, 9 Aug 2022 20:24:21 +0200 (CEST)) 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:138770 Archived-At: > Date: Tue, 9 Aug 2022 20:24:21 +0200 (CEST) > From: carlmarcos--- via Users list for the GNU Emacs text editor > > > I am writing this function to display face attributes.  The function works interactively accepting a string from the user obtained from `completing-read'. What is that string? If it's a face, then we already have describe-face. > For `char-after-point' I want to display the face attribute of the > character after point. Did you try "M-x describe-text-properties"? > Having seen that there can be more than one face at point, what can I do? No, the face at a given buffer position can have only one value.