emacs-devel
[Top][All Lists]
Advanced

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

Re: Question: add-face-text-property for 'font-lock-face?


From: Yuan Fu
Subject: Re: Question: add-face-text-property for 'font-lock-face?
Date: Sat, 28 Aug 2021 21:24:43 -0700


> On Aug 28, 2021, at 9:13 PM, Qiantan Hong <qhong@mit.edu> wrote:
> 
> Users of crdt.el report that crdt-visualize-author-mode (which use 
> font-lock-face to color code author of texts)
> conflict with faces from other modes. Apparently there are more than 1 mode 
> which sets this text property.
> 
> Is there some way to add-face-text-property to 'font-lock-face property, 
> i.e. adding new face attributes instead of overwriting any existing face?
> add-face-text-property doesn’t seem to work because 'font-lock-face will just 
> override ‘face.
> 
> Best,
> Qiantan
> 

Is there anything preventing you from using overlays? They seem to be perfect 
for the job.

Yuan


reply via email to

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