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: Sun, 21 Nov 2021 23:12:24 +0200 Message-ID: <834k85qklj.fsf@gnu.org> References: <87bl2hyzca.fsf@gnus.org> <8735nszpdv.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> 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="38063"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, stefankangas@gmail.com, dgutov@yandex.ru To: larsi@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 21 22:13:25 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 1mou9M-0009i1-QP for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Nov 2021 22:13:25 +0100 Original-Received: from localhost ([::1]:50884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mou9L-0001BS-NV for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Nov 2021 16:13:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mou8K-0000G5-FP for emacs-devel@gnu.org; Sun, 21 Nov 2021 16:12:20 -0500 Original-Received: from [2001:470:142:3::e] (port=35470 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 1mou8J-0004qG-Te; Sun, 21 Nov 2021 16:12:19 -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=t8qx/zd/PGfwSdcvr7LeNlGdl6ODgnht2rxwOG/Eudw=; b=k5CfbeMipKI4nPR72JR7 zY5QE2FV9wZ0ktQ6lko3vrogAafYqgl3w2zMfpEu0E1wc520sETLJgTiasZUzDoznBG63hkkvJmdx iYs5Vy5mCjumOPMk5oIoeM5dy6+ZdWGLpAsV6B5hhJ/Lhi2HnSYF3FB5LzQ0uhCOkyh6OvkNaPo5z KCfPMbnGF347AbH8Vk5gwz5qCkqpMpWMY8Y7ohy15/0PzuQUrTm0pJ+qY2KkEasuA/d3rzFMe215f H1GeFsEcSS3+jtGWHK66C7y5ncpyEROYxJoY8lQfU5y4GqOUC30bgwPwzs58SQRhTcKUMJ1fwgygN Vqat5H2Yg0E1vg==; Original-Received: from [87.69.77.57] (port=3663 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 1mou8J-0005TJ-JN; Sun, 21 Nov 2021 16:12:19 -0500 In-Reply-To: <835yslqlzd.fsf@gnu.org> (message from Eli Zaretskii on Sun, 21 Nov 2021 22:42:30 +0200) 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:279893 Archived-At: > Date: Sun, 21 Nov 2021 22:42:30 +0200 > From: Eli Zaretskii > Cc: dgutov@yandex.ru, stefankangas@gmail.com, emacs-devel@gnu.org > > > From: Lars Ingebrigtsen > > Cc: emacs-devel@gnu.org, stefankangas@gmail.com, dgutov@yandex.ru > > Date: Sun, 21 Nov 2021 21:28:27 +0100 > > > > Eli Zaretskii writes: > > > > > This is a 'display' text property, right? It is placed on text; > > > instead of that text Emacs will display a stretch glyph (white space) > > > whose width is calculated as the pixel width of the first character > > > "covered" by the property multiplied by FACTOR. > > > > (shr-string-pixel-width > > (propertize "칹a" 'display '(space :relative-width 1))) > > => 22 > > > > (shr-string-pixel-width > > (propertize "a칹" 'display '(space :relative-width 1))) > > => 22 > > A bug? Definitely a bug. I have a provisional fix, and will install tomorrow, together with a fix for another bug: the current code doesn't support this property on a string (as opposed to on buffer text).