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: Handling non-interactive use with faces Date: Wed, 10 Aug 2022 20:36:02 +0300 Message-ID: <835yj0q9vh.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="14285"; 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 Wed Aug 10 19:40:03 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 1oLpgY-0003XA-9S for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 19:40:02 +0200 Original-Received: from localhost ([::1]:58128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLpgX-0002yd-5T for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 13:40:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLpcz-0001hY-B4 for help-gnu-emacs@gnu.org; Wed, 10 Aug 2022 13:36:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLpco-0005AW-Hf for help-gnu-emacs@gnu.org; Wed, 10 Aug 2022 13:36:12 -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=+EkCLKiYAArtK2kcltu6IrDyB/ZcNhFzzcA8tlTgWXQ=; b=cHY3zdMdIDo2se3eT2HR tKFYj2YQxHUcf2EEvh1qRnOsg34IB0LjyQmieqAp1dfWj+wpWUbjwEWyITFRuT7VBXC213Y9jpErs mg1eLRcg9zkVmSVgfz6pCstKEX3BjFD5V0mNOPXP2FIalIbEMK9KIunAhFoVE7cVZi1fEOKBqHpe7 aCaNsyqyuxc5SpKs9NEVC9NruN7HaI/CW+dSqprszR1UvyvlODBiOsNfqnQgBoEdgHsL6LVacIQhC MCMaQPnK557yB65JTpOIe3lXG+71FLtOd5TIhiMVALg8EkSXbfKs7CmVa7pa4Tc9GYGT0uKGaSnN4 XYwNnCCi7O0oKw==; Original-Received: from [87.69.77.57] (port=2149 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 1oLpco-0000RH-1t for help-gnu-emacs@gnu.org; Wed, 10 Aug 2022 13:36:10 -0400 In-Reply-To: (message from carlmarcos--- via Users list for the GNU Emacs text editor on Wed, 10 Aug 2022 19:23:05 +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:138783 Archived-At: > Date: Wed, 10 Aug 2022 19:23:05 +0200 (CEST) > From: carlmarcos--- via Users list for the GNU Emacs text editor > > How can this function be made to handle the case of non-interactive use to pass a face for displaying its properties? > > > (defun laxy-descface (facenm) >   "Describe the typeface properties of face name FACENM." You need to add a pcase alternative for a face or face name, and then you call your function with that face as a single argument.