From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Tue, 13 Dec 2022 09:16:48 +0800 Message-ID: <87mt7sgl1b.fsf@yahoo.com> References: <83r0xv1649.fsf@gnu.org> <0d1ea3007f532a493429@heytings.org> <83cz9f12bh.fsf@gnu.org> <835yewleyn.fsf@gnu.org> <83tu2b9rlx.fsf@gnu.org> <83k0347gtu.fsf@gnu.org> <83v8mm2ug7.fsf@gnu.org> <83cz8u2d6u.fsf@gnu.org> <831qp93nsc.fsf@gnu.org> <1a7e3acf3578520feda7@heytings.org> <831qp4slt0.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17477"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gregory Heytings , monnier@iro.umontreal.ca, 59347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 13 02:18:17 2022 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 1p4tw0-0004Hj-9P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Dec 2022 02:18:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4tvo-00066I-CC; Mon, 12 Dec 2022 20:18:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4tvm-000669-S5 for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 20:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4tvm-0006Tm-JF for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 20:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4tvm-00067S-Bs for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2022 20:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Dec 2022 01:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59347 X-GNU-PR-Package: emacs Original-Received: via spool by 59347-submit@debbugs.gnu.org id=B59347.167089423023498 (code B ref 59347); Tue, 13 Dec 2022 01:18:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 13 Dec 2022 01:17:10 +0000 Original-Received: from localhost ([127.0.0.1]:56817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4tuw-00066w-3q for submit@debbugs.gnu.org; Mon, 12 Dec 2022 20:17:10 -0500 Original-Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]:39057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4tuu-00066m-Cf for 59347@debbugs.gnu.org; Mon, 12 Dec 2022 20:17:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670894222; bh=r/cz/p1GfKSADMMEbkS40FPzKGjyL6nvvWIIfWA7WD0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=D2J5uHLYGVZJBBpvp227tURdFDD2ZPQHluIkwA8zXORQDkA68LV+WwfP0jgyJrbTfMuN3wQfBCimQJveyE0DlE6fMTfwDXsbH9tGpwKDybvuIh9c4KVSUXtT90+Bp5KtntoD4NRu+gdyxo2dyy24Y39f/uwSHDUC/UGIeX0uGrqbYUCJlQDOWit4VNP2PkZE9CWY/t4HJquPaT++ZjaQErFNFPz9S7ocL7WnSWdS9TkPinrb82F/zbQt/1ezi1TUHJ/oeFiwAhcCjD3CjsFW/lJDhevQD8Fz4wLlViZeYQYNjqAKczDk44Or2B8MjRzg0g/x+htm2VJKGwAAQ830eA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670894222; bh=G5qRLmktxopG/u7/IAS9xir/rTGNhKCVoqiqCKUICM3=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=mL+ic5g9QvPAuGP6YN73QrWYfg+peEbWPXVC8Q8eltt80Zo+kWk0Ex8AjGcdYe+OMrsspkeP90KtiGRdy1I/zjq6UNxYaGmB9tTyN6tCrPtAfgBYElYEoq1ZX4JDBB6WmQ1fVWu24GeQviRoeIncDTfKtqopJHsOpRe/AepQBM5lPWNLI5EM1IhQpDAd4JAKRuwhp3dd8WLFusxgHJlEkNOmOlhfvjiLtu0QNE8UD93DMF699r34fhth0kv+JkdrO9h/oIHepxhtY/yAUYOaS2I2DYJcUnBnf+Mop1wGQk2wyPiPuykJRv7BsMzRilmqb00WK1Ik6awku/eBu1AetQ== X-YMail-OSG: D.P1qwUVM1nTbmCtqDGttLo3Cax6XJq7P.iCbQ9XNKtNna9zvsPd9nN9BaZ8k5j s.xYjlwDo.6GeDZwAtnklOcPCQ9KasqCTGG4tTJ_zfihc_4od9reqBE2JuCoA2lb261ifFIyzOMp U.nLinr2fEzdcMb6ow81W0wWcIRvmzZMwefKhgElSXiuqLJdcrT5xxrBASYbvxTHzx1b4i.bRlW7 _KwXicnATXE3pOZ2zj2kkStKG1OqsoUI8SaUe_pcMbzoDiDqmKk5jkFblgUQKxDXHmc2L9LLwDCC Y0WVfUI7Ok4THwcjH6aofonw2lCIk4zf_QROty55.IH3a2.LAQGL.JYwQgKhwYmcyr3QqvDTOimf GtuabfagB7.eKSMIw9ngC.UilvfMW129al93y2SH9IgPR4dCtxDBWMsVrc9EznryNVGAJGTTAoRY W8FGeT_MU_qNKGVowoE3R7314tOVy8RKlJHHXZg.aqfPDfjBfreCLRNs7rLMwvirBbrZlVYXtMDf yTcag7ry7fNcTUJAAIV5P1G5hyWyjLsOncSSnkwZpF9cQhyW0r7ZkFuqFd_Zbv5lk9xWGevO0zse dOyAZ5X6xzTN1kzzjo9tFnsqRvxuJiqfOOI5SXpQt_WkF6Tf2fJk5Me7vJPN5WhkzBips4ECiNhs Gn72eroDrYAkyzMoayi_miUfVF85tuIHTPpBBZMqcpsQxU38zi5cuU8QjK5lKuaC1t_WxiV50psa zoN7mvxpTs_dR1Xv39acW6AsDaUwWU.QRz.h2DPnXzcVH_IB2oxVFF.zBFfvcre249LdVoULe0uD qZsOMah9TcUK.oyzgjlkpyzkXnlysV4buCiYB5EfsO X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Tue, 13 Dec 2022 01:17:02 +0000 Original-Received: by hermes--production-sg3-b666c6484-s6ncm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 707e7f3e38758a796ee27809b947077a; Tue, 13 Dec 2022 01:16:55 +0000 (UTC) In-Reply-To: <831qp4slt0.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Dec 2022 17:07:07 +0200") X-Mailer: WebService/1.1.20926 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250787 Archived-At: Eli Zaretskii writes: > If this is so, why not disable that only for Haiku? It's also rather pointless to disable just :extra, as it's a property list of extra properties, which should have their individual options. > "Nuisance" is an exaggeration. But I agree that using more > descriptive values is more convenient, if and when someone needs to > change the default value. And I have a proposal for how to do this > without sacrificing performance; read on. > People are reportedly running Emacs sessions with several thousands of > faces, in which case 2 to 4 usec per face could add up to a > significant number. So it cannot do any harm to try to make the > "usual" case faster. I agree it can't do harm, but 2 to 4 usec times a few thousand faces is still probably going to be less than 50 msec, so that still won't hurt. And that's assuming all the faces are realized at once. > Anyway, here's my proposal: > > . we change the default value of the variable to be t, and document > that this stands for (:weight :width :slant) > . we change the code to reset only those 3 attributes when the > value is t, and to reset nothing when the value is nil > . the (slower) code which loops over the list will only run if the > value of the variable is neither nil nor t > . we avoid resetting the :extra attribute on Haiku > > Is this okay with you both? I volunteer to make these changes if you > agree. I'm fine with that, thanks.