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: Thu, 11 Aug 2022 19:08:06 +0300 Message-ID: <83bksqpxuh.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16497"; 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 Thu Aug 11 18:09:24 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 1oMAkO-00040b-By for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 18:09:24 +0200 Original-Received: from localhost ([::1]:43858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMAkN-0003eq-9t for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 12:09:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMAjD-00037z-KL for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 12:08:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMAjD-00073y-C5 for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 12:08:11 -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=YuleFGrUd5Iicm3fONdGBznCvhPMVNy/elIGLkoIrSw=; b=GA0G5UKAPdmN e3wzh00U10BPAMTa5oo4IIMWItX4vqMcNdGMG0SrG/56waUT3x42mYvipy49qSJcC593t+xrJxcLr f+rqYnIk+8nPtd52bsDSfW1hGszlGCgVkIT9DxPv/AMvxYMBaElUMZ6r7JypmKtvzsnTGmsOMjAJ/ gPbZVR57obi/D0D3IMlezL+g4IffscvQYyXAZ0QTEeKfGMeR+OylqvSn0I+NIvr59qlwRMu/S/YpB Ye4em7+XLJ5BUvgdHvsJDk1+z1j259aSf2s94hkSgDBYRyuFPWkM0bZ4NuqweppFuYwGdfzjo4Iie IlOgdAZwbNqa8+xp2Zww9g==; Original-Received: from [87.69.77.57] (port=1707 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 1oMAjC-00015o-Pr for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 12:08:11 -0400 In-Reply-To: (message from carlmarcos--- via Users list for the GNU Emacs text editor on Thu, 11 Aug 2022 17:56:23 +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:138804 Archived-At: > Date: Thu, 11 Aug 2022 17:56:23 +0200 (CEST) > Cc: Help Gnu Emacs > From: carlmarcos--- via Users list for the GNU Emacs text editor > > > 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. > > I am struggling to figure out what kind of `pcase' I should use for the scheme you suggest. I guess use stringp for face names and facep for faces?