From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41200: Displaying a tooltip with x-show-tip gets very slow as more faces are defined Date: Sun, 24 May 2020 01:47:28 +0300 Organization: LINKOV.NET Message-ID: <87r1vas1z3.fsf@mail.linkov.net> References: <8fd8896a-cd5c-66f4-4792-f65cac4dc4f5@gmail.com> <83lflx896q.fsf@gnu.org> <837dxd31cb.fsf@gnu.org> <789d786d-a07a-65c1-c0e4-433e4c18d64e@gmail.com> <835zcxgrby.fsf@gnu.org> <833681glas.fsf@gnu.org> <53252e93-085c-477f-21df-c909082dffc2@gmail.com> <87367z324f.fsf@mail.linkov.net> <3fc34671-54ba-e83d-9514-11e0906c2ac0@gmail.com> <87lflqkznj.fsf@mail.linkov.net> <87zha3d29k.fsf@mail.linkov.net> <83a71z135p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92359"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: cpitclaudel@gmail.com, 41200@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 24 00:57:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jcd4q-000Nvo-4p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 May 2020 00:57:12 +0200 Original-Received: from localhost ([::1]:39122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcd4p-0001b7-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 18:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcd4g-0001XO-UE for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 18:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcd4g-00055y-LO for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 18:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcd4g-00089n-Kw for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 18:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2020 22:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41200 X-GNU-PR-Package: emacs Original-Received: via spool by 41200-submit@debbugs.gnu.org id=B41200.159027460231314 (code B ref 41200); Sat, 23 May 2020 22:57:02 +0000 Original-Received: (at 41200) by debbugs.gnu.org; 23 May 2020 22:56:42 +0000 Original-Received: from localhost ([127.0.0.1]:36007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcd4L-00088p-OD for submit@debbugs.gnu.org; Sat, 23 May 2020 18:56:42 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:33025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcd4I-00088T-RL for 41200@debbugs.gnu.org; Sat, 23 May 2020 18:56:39 -0400 X-Originating-IP: 91.129.97.200 Original-Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id AB07420003; Sat, 23 May 2020 22:56:31 +0000 (UTC) In-Reply-To: <83a71z135p.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 May 2020 11:11:46 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180861 Archived-At: >> >> Could these faces belong to both groups? >> >> >> >> :group 'basic-faces >> >> :group 'tab-bar-faces >> > >> > Yup, but that won't work well if the face is customized before the >> > group is defined, right? Maybe the trick would be to add the group to >> > the face when tab-bar.el and tab-line.el are loaded? >> >> Actually since tab-bar.el is pre-loaded this problem exists only for >> tab-line.el. >> >> Then adding something like >> >> (nconc (get 'tab-line-faces 'custom-group) '((tab-line custom-face) ...)) >> >> to tab-line.el will add faces when tab-line.el are loaded. > > Could you guys please finalize these issues? I'd like to install > these changes on master, for which I'd need a patch that covers both > the changes in the face storage and the fix for the tab-line face. > > Actually, the problem with the tab-line face will probably need to be > fixed on emacs-27. I don't recommend using the trick with nconc in emacs-27. It would be less risky if Clément will just move tab faces to faces.el in emacs-27. Or may I suggest to preload tab-line.el in emacs-27? That will solve the problem as well.