From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Question: add-face-text-property for 'font-lock-face? Date: Mon, 30 Aug 2021 16:18:56 +0800 Message-ID: <87y28j1h1r.fsf@localhost> References: <83a6l0n32e.fsf@gnu.org> <3272782D-2308-447C-B94B-A65E561C4D18@MIT.EDU> <835yvon11g.fsf@gnu.org> <5cf80cca-828a-614c-9cb4-d478a04c05f5@gmail.com> Mime-Version: 1.0 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="5166"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Qiantan Hong , Eli Zaretskii , "cpitclaudel@gmail.com" , Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 30 10:18:46 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 1mKcVB-00012z-OE for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 10:18:45 +0200 Original-Received: from localhost ([::1]:53484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKcVA-0002to-NF for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Aug 2021 04:18:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKcUc-0002Ey-F5 for emacs-devel@gnu.org; Mon, 30 Aug 2021 04:18:10 -0400 Original-Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:37496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKcUa-0000D9-UC; Mon, 30 Aug 2021 04:18:10 -0400 Original-Received: by mail-pf1-x42e.google.com with SMTP id x19so4590737pfu.4; Mon, 30 Aug 2021 01:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=xi9Vypd/7AyWG8LnfVJs3caoRtS16sJjdTJ2b2DgizM=; b=FK3f22UbpKBGqDtpDJ0IEBbtUK3HGDUxSn19thw9KWGz4QQbhq64URJVfsDi4h/1ek UV8Rn6byNrbLjOzlErPlNZojjVYKdyc9uNNZf5TucEGdeqO5/GOMKIGk4fWOILU0sFXX 04YspGgToMGhNEJwEL8UR1DxDSC2Ym6JVF9ef2lowHpid4Zs0OySTce8WqJUnFByYXcB OvuPxnLd0VvNSlSeQr6kzxREntMWGnI+U3oVs70mnab4ZmzB5Ke22tyVil5jsTAkUhWA ZcNAD5/NfEviEC2au3m+Fxu2ZtrzU0Xl7eIZzZkzb2Sq2tkf6l8IW9FO4fe6be4cyxhn 1UKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=xi9Vypd/7AyWG8LnfVJs3caoRtS16sJjdTJ2b2DgizM=; b=eVtbnnaid+INzmRbMRyPHsugbBqyZIbWAoDW19SLNzLnUQwdP+kkR4xFfBbF83N+nB Dwa9ECdqURcF3ObCjHcoYLvdWuUVBBcUq4RTW2LkqGHTSSiES3Cxvt529c+lbBV9a1kD DQ6nzPgJhJrFBaFDz/wLYdgcrsF1eppxWDcnrQWakuU0ilbeXfVIJjjUm+jJxLtbdMYg CkxP65hQL3QhPZwyBjbwsdrdmRpb0gf+F90PMFOlT9UqTaIojxXWFri3yz+4azA4Z0f1 Y2AsURucDWRoD+Ue7xjZNbfzee4Yfc2H84aahEk7HoDE3+CQV1F9RYDZK6v7lbPyxqEF vp2Q== X-Gm-Message-State: AOAM533n63u13Qwrdm1t/PCnIJbQ8bMlFHxhF3bmze0AQtI/RKKEMivK JZLtw3kvTx1AgKb9WZ4JOQA= X-Google-Smtp-Source: ABdhPJylkhSehapfNzaZCpLUfrRuI7G7Ewd0aZ/gFX0ND0RwlUrPU3PMObPrGOHEbgON8pcbbFhYrQ== X-Received: by 2002:a63:d64f:: with SMTP id d15mr20767037pgj.9.1630311486461; Mon, 30 Aug 2021 01:18:06 -0700 (PDT) Original-Received: from localhost ([206.190.157.238]) by smtp.gmail.com with ESMTPSA id q12sm14040062pfj.153.2021.08.30.01.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 01:18:05 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, 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:273469 Archived-At: Stefan Monnier writes: >> I now see that Yuan=E2=80=99s suggestion of overlay will do this, but th= ere=E2=80=99s >> performance concern. > > The performance concern is largely hypothetical, and if it ever proves > real, we have a branch waiting to be merged that reimplement overlays > in a more efficient (algorithmically) way. It is not hypothetical [1]. I have reported issues with overlays in org-mode in the past. Also, from my experience, large number of overlays appear to cause garbage collection issues and overall Emacs slowdown. Is the overlay branch ready to be merged? I am only aware about yet another effort to revive it back in 2019 [2]. Is there any progress since then? Best, Ihor [1] https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-05/msg00206.html [2] https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00323.html