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.devel Subject: Re: region-based face-remapping Date: Mon, 15 Jan 2024 22:19:28 +0200 Message-ID: <83ply2cptb.fsf@gnu.org> References: <83y1d7zy8s.fsf@gnu.org> <3592E8C5-35FF-44FF-88ED-B458303BF15A@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20156"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 15 21:20:04 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rPTRE-000521-89 for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Jan 2024 21:20:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPTQu-0001cV-8l; Mon, 15 Jan 2024 15:19:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPTQs-0001c6-OK for emacs-devel@gnu.org; Mon, 15 Jan 2024 15:19:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPTQs-0008P9-6y; Mon, 15 Jan 2024 15:19:42 -0500 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=hF7SUw2K+cERPLiikzacjRVN0z6M2H5eSplVD+PPq34=; b=Lm7eQYMmqenE qfplegwWSJQslIpGveJYFEk/6HyVZmdtTjQ55umGDCvg4O37d0icrDfj1tzCf3HeuNHDYxZm2+T+3 WaSXIUvzlHpt5NDOcBRLUfauSpIdq9lRAPZ0LJhc9N4ED4mSTgYokLhkM176qq89daZACZ3csyj4Y g2Ih5CWp5cKL6vKPID12iNmm3MCYsBFKnjjOyAh0JMGThMHLqzpMgw1xeuZGFcw1H7t9BulfTCaFN 89VGfq46OIzKs2WxV0wjLG5GXDy1VMtDOxyIAAEShoNno8Zg33KoRI+yTurZ5AiToYnMYVEVXka1l EH4DUYmqliw3ovzJZGITqQ==; In-Reply-To: (emacs-devel@gnu.org) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314995 Archived-At: > Date: Mon, 15 Jan 2024 14:55:34 -0500 > From: Stefan Monnier via "Emacs development discussions." > > There are some exceptions, most importantly the size attribute which can > be a float to increase/reduce the base size. I think such a third option > should be available for many other attributes, so we can have faces > which make the background color more red, or which increases/reduces > contrast, ... How do you express these "more red" or "more/less contrast" using just the existing face attributes? The :height example doesn't help because it just defines special values for an existing attribute, so the analogy would be to define a value for :foreground that would make it "more red". How to do that? And the same with "more or less contrast with the background color". > With such a functionality, your request would be satisfied with a simple > overlay with a single `face` property. But only if the effect is to transform all the faces in the region in the same way. My understanding is that the request is not necessarily limited to that.