From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Question: add-face-text-property for 'font-lock-face? Date: Sat, 28 Aug 2021 21:24:43 -0700 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34559"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 29 06:25:27 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 1mKCNr-0008uL-2y for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Aug 2021 06:25:27 +0200 Original-Received: from localhost ([::1]:33468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKCNp-00077y-DQ for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Aug 2021 00:25:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKCND-0006TU-Fl for emacs-devel@gnu.org; Sun, 29 Aug 2021 00:24:47 -0400 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:42886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKCNB-0004Ax-RL for emacs-devel@gnu.org; Sun, 29 Aug 2021 00:24:47 -0400 Original-Received: by mail-qt1-x832.google.com with SMTP id e3so8853341qth.9 for ; Sat, 28 Aug 2021 21:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=RK34bjlo66tIRT6iI1F2NOTlALue+Vevo8cqHa6k0VM=; b=DdyrquNwoWOrsP4eZU/mHCX6u9t7HYqwliqKYKJNmo1u8t9Gk5CV7VGHg4kaHtMhWl pdDuYPyDQrnCNjSUu38d/UuGNqev8+9To++XpHqfJ0moFPdH7QjrSZaYCyrZRlXrnxDc iiSUtjLdcvpkyFRAG0gHdPcFGdGZ/BNv6oQDvUdMiBDaANZTFMTd56tKcDEO97fNOwQ4 n6HaD0EIS45BEzOg4yZ4z0uFUz9PFYnaj3yExkPvXqFCLkk6BDGURezvzHSK13qFGqk4 oonVBYcLXe5DnRLRyX1oQg3M2jR19Ti2Wd0lJ6uYjBLpzgw6tOA06ObGQluuYk+0Njwd qyUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=RK34bjlo66tIRT6iI1F2NOTlALue+Vevo8cqHa6k0VM=; b=L87WzvW8sO7xyedBMxwBhfpGfhem+zwsuJJyDdIs4UBn5YtsTpcEfgVY9BgeluQ3sJ l6HQfdJjArSWkn58xROXvTUv7EVUOx+Ox0tI9Fu69oFnLog1CrTebxitxJTCDmV/2upC WqFBdOaaXpJUHVwlnUiRSww+9Dc32rY5gxjf5D56Y+vN05E7ybSVYY9OIB8ER8XU9TWV ZRfuHyMNWDuCe9QzgkCVi5rxJhUzH6X4G9gyCmSKm5qJOAbWIFf9QMnVMXJ5HzuGVId6 GoSMlCF9V/I5njC5dUnmaVcH/i36gHtoEFyaU0rY/R9kn2hcK+yKFO0D0TE4KgxfnLeR NEJA== X-Gm-Message-State: AOAM5328Oi4cX7fn1srobEu1RiuAaHoVTdFQiVh0/MT3qyd5P57is6ND iDbdIeWqJ4c5rMvF04hOmSs+YyQKojg= X-Google-Smtp-Source: ABdhPJy4NYD+ODbPcr/LNz0KAWYGd0nzIzsHq/UagS45sAz1K0awKNITCP9U9vqNmOUPckAV4bgYDQ== X-Received: by 2002:ac8:7b5b:: with SMTP id m27mr15258001qtu.316.1630211084697; Sat, 28 Aug 2021 21:24:44 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:e16d:a3b0:cfde:92c5]) by smtp.gmail.com with ESMTPSA id q192sm8443940qka.93.2021.08.28.21.24.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Aug 2021 21:24:44 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=casouri@gmail.com; helo=mail-qt1-x832.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:273371 Archived-At: > On Aug 28, 2021, at 9:13 PM, Qiantan Hong wrote: >=20 > 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. >=20 > Is there some way to add-face-text-property to 'font-lock-face = property,=20 > i.e. adding new face attributes instead of overwriting any existing = face? > add-face-text-property doesn=E2=80=99t seem to work because = 'font-lock-face will just override =E2=80=98face. >=20 > Best, > Qiantan >=20 Is there anything preventing you from using overlays? They seem to be = perfect for the job. Yuan=