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: Tick Reduction Date: Mon, 22 Nov 2021 16:52:02 +0200 Message-ID: <83wnl0p7jh.fsf@gnu.org> References: <87bl2hyzca.fsf@gnus.org> <87sfvswrp8.fsf@gnus.org> <834k88woaj.fsf@gnu.org> <878rxkv980.fsf@gnus.org> <87sfvpmtl8.fsf@gnus.org> <83pmqtqvj5.fsf@gnu.org> <87bl2dmnfa.fsf@gnus.org> <83mtlxquh7.fsf@gnu.org> <877dd1mlsd.fsf@gnus.org> <83k0h1qss5.fsf@gnu.org> <8735npmkm5.fsf@gnus.org> <83h7c5qpag.fsf@gnu.org> <87czmtl2uv.fsf@gnus.org> <83fsrpqog1.fsf@gnu.org> <87wnl1jnfa.fsf@gnus.org> <87lf1hjmmi.fsf@gnus.org> <83a6hxqmxj.fsf@gnu.org> <87czmtjlsk.fsf@gnus.org> <835yslqlzd.fsf@gnu.org> <834k85qklj.fsf@gnu.org> <87zgpwfn9e.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11517"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, stefankangas@gmail.com, dgutov@yandex.ru To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 22 15:54:27 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 1mpAiB-0002p1-3A for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Nov 2021 15:54:27 +0100 Original-Received: from localhost ([::1]:50862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpAi9-0007XL-Q5 for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Nov 2021 09:54:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpAfj-00044k-8h for emacs-devel@gnu.org; Mon, 22 Nov 2021 09:51:58 -0500 Original-Received: from [2001:470:142:3::e] (port=35626 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpAfi-0006KD-57; Mon, 22 Nov 2021 09:51:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=889ydgQaSNHP1tmz+IEvIOq973A8+2DF+MAS8ejS2vI=; b=kEw07iSaX6mArJo6kpue ZXcBboZG6fziSS0Z6wV1sC4If1X4cjJN/z8iqYs5z4nbGxoFSp0ZDEIpio/2Pp2DqLAUcmj1nEKWZ gQK/N6P7LSMwSETLsjbsBDVQHBAbaI/eF3SBdJppBBIek9OZMLXqv4ocHX95vUlt4d+apMq6GCcbO k7t26IEPn5iT5jbv1sOoZ5s1paTNxx8VKjgAb3L3sDs/LFY+rT+zzTCyuy5o8H7J1I3D6Ee+/BWxb MxZRK34Wqno1jWBGIbaBsinq0uFFwG5ga9FKA8wAcePgHlNIyb+gAG8NJZFwxD9V/vDe9B24YX9xd mtJAtvbwF3th4g==; Original-Received: from [87.69.77.57] (port=4592 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpAfh-000767-Pn; Mon, 22 Nov 2021 09:51:54 -0500 In-Reply-To: <87zgpwfn9e.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 22 Nov 2021 12:22:37 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:279916 Archived-At: > From: Lars Ingebrigtsen > Cc: dgutov@yandex.ru, stefankangas@gmail.com, emacs-devel@gnu.org > Date: Mon, 22 Nov 2021 12:22:37 +0100 > > If you say (propertize "😀foo" '(space :relative-width 1)) then it's > supposed to make a space that's two normal characters wide? (Since 😀 > has a char-width of 2.) No, not on GUI frames. On GUI frames this works at pixel resolution, so it produces (or should, but currently fails to produce) a stretch of whitespace whose pixel width is exactly like that of the glyph for 😀 produced by your font. char-width is only for TTY frames and for crude approximations on GUI frames. > Well, OK, I can vaguely see how that > might be useful, but it seems like it would be as easy to just say > > (propertize "😀foo" `(space :width ,(char-width ?😀))) > > wouldn't it? As easy, yes. But it's supposed to be much more accurate than char-width.