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: Question: add-face-text-property for 'font-lock-face? Date: Sun, 29 Aug 2021 10:05:29 +0300 Message-ID: <83a6l0n32e.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38481"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 29 09:06:47 2021 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 1mKEty-0009lP-8l for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Aug 2021 09:06:46 +0200 Original-Received: from localhost ([::1]:41436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKEtw-0006kE-KF for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Aug 2021 03:06:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKEt0-00063j-5X for emacs-devel@gnu.org; Sun, 29 Aug 2021 03:05:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59128) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKEsz-0003QA-G1; Sun, 29 Aug 2021 03:05:45 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1201 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 1mKEsw-00044L-KP; Sun, 29 Aug 2021 03:05:45 -0400 In-Reply-To: (message from Qiantan Hong on Sun, 29 Aug 2021 04:13:40 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:273376 Archived-At: > From: Qiantan Hong > Date: Sun, 29 Aug 2021 04:13:40 +0000 > Accept-Language: en-US > > 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. I don't think I understand well enough what you want to do, but in general, you change a face's attribute by using set-face-attribute.