From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: D Newsgroups: gmane.emacs.devel Subject: Re: prettify-symbols-mode, derived modes, and compose-region Date: Sat, 6 Mar 2021 11:43:45 +0100 Message-ID: <50e114d3-7569-518e-7404-b17c469aec3b@posteo.net> References: <83k0qmzit9.fsf@gnu.org> <587ee071-985b-450a-2df7-0b4bb0f97b48@posteo.net> <83eeguyt58.fsf@gnu.org> <18caf24f-fb5d-616d-fb24-393f7d2149f7@posteo.net> <83r1kswsm8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1193"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 06 11:44:26 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 1lIUQ6-0000Cp-Dq for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Mar 2021 11:44:26 +0100 Original-Received: from localhost ([::1]:56066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIUQ5-0002J1-Dr for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Mar 2021 05:44:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIUPY-0001tv-PG for emacs-devel@gnu.org; Sat, 06 Mar 2021 05:43:52 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:33256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIUPV-0001Nh-Fa for emacs-devel@gnu.org; Sat, 06 Mar 2021 05:43:52 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id F2663160062 for ; Sat, 6 Mar 2021 11:43:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1615027427; bh=UF+EFs9QYRdq3YjR90i35coGMQzWu4+F8OLl3ypxP7U=; h=Subject:To:Cc:From:Date:From; b=DkSxT1oyjEU1zQkNUPLBzhGOE0sTpvU91meuu70LBwBV7txbgMcinnHNYJ0uKft9e Ol45mqf3/5qH3KO+N0y99PBzP8/Ara0d1LXn6rtzI698H57ql0ssBlPgHSoebb7Miv WCxvw8Gqbti90TeXZQDTloe8LQ0wyCIAfW9ZVMVPmogzH/LuZ6XViCJmi0mCGMa9L8 b635VYFhqu/dEzwwE2DgKMqc2zWGQZ9ibXsUNSgoLPV30Hbk9tYijZ4t0jjGgjEAy0 JJ0xKNIuOFbyXnxKrB7YYILuXbpwp7n2slH5XX4XvOyJoG53VmIK8DKS2Ki7+dmnj2 SfQ5NMs4JDiVw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dt1Rk0FxCz9rxN; Sat, 6 Mar 2021 11:43:45 +0100 (CET) In-Reply-To: <83r1kswsm8.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=d.williams@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:266066 Archived-At: > In your original use case you didn't have images, you had characters. > Or did I misunderstand? That's correct, my point was whether there was any common underlying logic one could make use of. > Yes, I think so. And on text terminals this issue is moot anyway, > because every character takes a single column (if you forget about > those rare ones that take 2). Exactly, it's the straightforward case. > shr-fill-line, I guess. > > You can also try using font-get-glyphs, it might be more suitable for > your needs. I think shr.el doesn't use it because that turned out to > be slower than the current approach, but your use case is different. I'll look into both, thank you!