From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: region-based face-remapping Date: Wed, 3 Jan 2024 14:40:49 +0200 Message-ID: References: <83y1d7zy8s.fsf@gnu.org> <3592E8C5-35FF-44FF-88ED-B458303BF15A@gmail.com> <83edeyzjgp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35669"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: Eli Zaretskii , JD Smith Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 03 13:41:38 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 1rL0Yy-00092q-LI for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jan 2024 13:41:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rL0YS-0004KH-VY; Wed, 03 Jan 2024 07:41:05 -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 1rL0YN-0004Jh-G4 for emacs-devel@gnu.org; Wed, 03 Jan 2024 07:41:00 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rL0YK-0008Nf-NV; Wed, 03 Jan 2024 07:40:58 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 185EF5C017F; Wed, 3 Jan 2024 07:40:54 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 03 Jan 2024 07:40:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1704285654; x=1704372054; bh=3AqA1RpHxz5pD1jCFt+Lqt+3I31yzPzhtfLt6hKdEEo=; b= cIoEQ4JW8jnWQghztsAGgnhtQwYJ8bDngZb7y9UEJm2EatQhkeZpC9yBR1cxBE56 ctuY54ladf+7uLKybJh86q6uvxx+eFZtK8L87/ecs4dEFsaR5jobXTjKqyvWEyVs +W4Bu2xgTtuE+Ha05Re5oAy/EpZsn6saeCJxhCJLUK9VyAWzVmvvLUnD9JiZ2ap+ kBDq1G+jhVxASoCQ8izcMv9bAa+PoxZZmxVjOAWVeEdx00/2uREWcvYSf9E2xtpj XUtyD8mZQzRcjjEPTMAeNRn3nnMClpwRSNKp46/F2F5GarB0U7oPunqHK3QoBg5m j++eaVUTPOn/tpcmnDO0ew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1704285654; x= 1704372054; bh=3AqA1RpHxz5pD1jCFt+Lqt+3I31yzPzhtfLt6hKdEEo=; b=m w4BIi7S5GD4l5+b83Ox9YGGtnmwh+IAi+Racg/gxYn0SaCam8zlKsb1ek/I2HcT3 hWTdklmtv0qGHv9iXoljLYtivdPDskgNYDZVt/7+Bb7c0GIOxpqyBw0FwAd1+YmY gMkTvtLg3CiHCZTfK14s+BApD2jEnGE8yHmBxDJ/b2kGeNI9k+bF7DZqwQjlNvBE tiDyQL/Z/rTTQEMVZ3bbSyH+MTsVrM29vcaY7VbkGAVNOWSBEBJFSavkOYPDKKEV rwKwP4i0oZG2YVKNoKWYuQuwvGqV4s0yQOP/mBwyqaUmX5ErPV/6Dj0DeMDO46JQ 0e8Ez5pa9Hbg/PT0Ms/Sw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeghedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Jan 2024 07:40:52 -0500 (EST) Content-Language: en-US In-Reply-To: <83edeyzjgp.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.28; envelope-from=dmitry@gutov.dev; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:314486 Archived-At: On 03/01/2024 14:31, Eli Zaretskii wrote: > The workhorse we use now for obtaining face information is the > function face_at_buffer_position, which calls the various face-merging > routines. Those merging routines and their subroutines consider > face-remapping-alist as part of face merging process outlined above. > I don't see how we can avoid passing the buffer position to them if > face-remapping depends on buffer position. Perhaps face_at_buffer_position would first look up the overlay/text property 'face-remapping-alist, then merge its value with the variable face-remapping-alist (using plain 'append', for example), and pass on the resulting value to the face-merging routines?