emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: region-based face-remapping


From: Dmitry Gutov
Subject: Re: region-based face-remapping
Date: Wed, 3 Jan 2024 14:40:49 +0200
User-agent: Mozilla Thunderbird

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]