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 21:42:52 +0300 Message-ID: <83wnbeoc43.fsf@gnu.org> References: <83bksqpxuh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4860"; 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 20:44:08 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 1oMDA8-00013h-Ff for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 20:44:08 +0200 Original-Received: from localhost ([::1]:49020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMDA7-0003dv-JZ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 14:44:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMD92-0003db-Q1 for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 14:43:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMD92-0005YF-Gu for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 14:43:00 -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=/T3MuVrcj7/3IBThEzImylTlPR/6jf04+IgcWp/fKO4=; b=f1xs3wO6gPe8 grm7klQLbQCCfTxrODebSCVt6gioYgn4BqSbiwveIZPN9or0UJaELlmsDvoEtJXhsmDuazBNZICvh oKTxhoVbUSlnsVDIw76MQz32YvQCgFH1wXq+fynfpBzTjDgH9WaOXPkurbNLtAmPeUlRRuLZ23/3v G+NRuNumdWkBZcT7gfFU/5hEUtevRm7/6ns2JZs3b4C+kkwlzcpPepy4EP6kAxyul8VExFzmiJZfa hCVITr8iD4F12gRp8/7hC0JA682PE6xlQpsNOSmrwESRpQftXXQ+HQVE4lmC73WChlSS1bERmzmJr 4fwbGADyKxKHvvS4Wz+IeQ==; Original-Received: from [87.69.77.57] (port=3487 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 1oMD8z-00045Z-AP for help-gnu-emacs@gnu.org; Thu, 11 Aug 2022 14:43:00 -0400 In-Reply-To: (carlmarcos@tutanota.com) 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:138806 Archived-At: > Date: Thu, 11 Aug 2022 20:32:10 +0200 (CEST) > From: carlmarcos@tutanota.com > Cc: help-gnu-emacs@gnu.org > > Aug 11, 2022, 16:08 by eliz@gnu.org: > > >> 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? > > > That would require two pcase statements, first to handle face names with stringp, then for faces with facep. Yes, and?... (And why are you using pcase here to begin with?)