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: Suggest installing more fonts? Date: Fri, 16 Oct 2020 21:48:01 +0300 Message-ID: <83eelyuhwe.fsf@gnu.org> References: <87wnzqa1be.fsf@gnus.org> <83y2k6v378.fsf@gnu.org> <83tuuuuygf.fsf@gnu.org> <83pn5iuxds.fsf@gnu.org> <83ft6euq7a.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 16 21:07:24 2020 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 1kTV4W-0004X5-Fx for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Oct 2020 21:07:24 +0200 Original-Received: from localhost ([::1]:45410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTV4V-0003WB-GA for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Oct 2020 15:07:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTUlp-0005pc-64 for emacs-devel@gnu.org; Fri, 16 Oct 2020 14:48:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39442) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTUln-0002rK-E8; Fri, 16 Oct 2020 14:48:03 -0400 Original-Received: from [176.228.60.248] (port=1700 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kTUlm-0006Jt-Nx; Fri, 16 Oct 2020 14:48:03 -0400 In-Reply-To: (message from Gregory Heytings on Fri, 16 Oct 2020 16:09:35 +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:257850 Archived-At: > Date: Fri, 16 Oct 2020 16:09:35 +0000 > From: Gregory Heytings > cc: larsi@gnus.org, emacs-devel@gnu.org > > I think I see what you mean: characters that have no fonts are discovered > during redisplay, and at that moment it's too late to add text properties, > which are not supposed to change anymore. It might be possible to add a > special help-echo like property that would be added at the moment these > characters are discovered, for example in produce_glyphless_glyph(). I don't recommend this, it is tricky and might cause problems. Instead, it is much easier to have a feature implemented in Lisp that would detect characters with no font glyphs and put help-echo on them. We have infrastructure for such features in jit-lock.el. > I don't think there would be "too many" such properties, it seems safe to > assume that in general such characters follow each other and form a > "block", and a single text property would be enough for one such block. It is okay to assume, but I'd still prefer that we also check that the assumption holds, and if so, do something to keep the number of properties in check.