From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Tick Reduction Date: Thu, 25 Nov 2021 13:58:08 +0100 Message-ID: <87czmofl3z.fsf@gnus.org> References: <87bl2hyzca.fsf@gnus.org> <878rxhjlot.fsf@gnus.org> <874k85jlmq.fsf@gnus.org> <87v90khaa8.fsf@gnus.org> <83zgpwp7v2.fsf@gnu.org> <87tug4fdn7.fsf@gnus.org> <83pmqsp0m7.fsf@gnu.org> <87k0gzyy8k.fsf@gnus.org> <835ysjoupv.fsf@gnu.org> <8735nnyob1.fsf@gnus.org> <83y25fneeh.fsf@gnu.org> <87pmqrx7rh.fsf@gnus.org> <83tug3ndaj.fsf@gnu.org> <874k81vmlf.fsf@gnus.org> <83sfvl8wjw.fsf@gnu.org> <87o869y0v2.fsf@gnus.org> <83fsrl8owz.fsf@gnu.org> <87o869wkcx.fsf@gnus.org> <83bl298n9b.fsf@gnu.org> <8735nlwih6.fsf@gnus.org> <837dcx8kkn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38415"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, stefankangas@gmail.com, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 25 13:59:55 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 1mqELz-0009mP-1m for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Nov 2021 13:59:55 +0100 Original-Received: from localhost ([::1]:49748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqELx-0005Tc-UO for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Nov 2021 07:59:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqEKY-0003cC-93 for emacs-devel@gnu.org; Thu, 25 Nov 2021 07:58:26 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=57774 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqEKP-0008LT-70; Thu, 25 Nov 2021 07:58:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qWQeAo0PgsdksG7YiJmAqSfuVe9U2iKLLBeFE0+F2l4=; b=lB5CTUyQ77MqpquII9HhY+KaJm X5DneIxjvBQCbdyUf3lu+OPYuD0IVZYeZl+0ksfc4ONXF5ZQ/Wc5Bu1ahDtUwLAuoX8UgecYdMMD0 lpHipZcGrPL+flFwznkWfZRZ9xyRIpozmLx0e8ja15ByyGdtKnDyzhyPCxjmhnL8zty0=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqEKI-0003cV-P1; Thu, 25 Nov 2021 13:58:13 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVKLCVPLCORZE60 ln7///8IGfnBAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+ULGQsqIxHFWy4AAAF7SURBVDjLnZPbecMg DIUFXQBpAkss0MD+u+UIgQ1t+lISXz5+ju4m8sXMheJtPsfKGiBtYDxaA+CUBbu3EueMzBWcK+5S SEoA6larmTWr+GM1NQ1Qe++ttZe11jvAq9sAr3FcrSXDfayhsG9iQVwFLljhazmvl6cB8NWrtQ1g pUGG7iMIYfkDMH0AttVsAYEDMfsB2PeUkQCuEkenwsG8gkwgSC5ylgOQ+AaKCHMs1wHuJSgURdO8 JSYakKetUGQPKVudTnbnEEgNSZiaecC5aDRCd4DzHi5a2ZzeILHXW7zDw1q5o0KdFNNVretSBMiY J0qXR9Rsz8PfvegiHu71APhIiCp5cWWWdzo33KIksyEBxEEMo6luCo9FvYO1rX6EjyLjuAfBuyni 0Tux7atJtI0JIJ+K2IcGfnifRFpjpc/E7abQimfinn1vCK5TwZnHRyMo12nKR45H1Kct7wnT+g5O gn2Jz2CBmRDj5xlS+qUow9YqxgbudP+53hVgPjdMzr2BAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIx LTExLTI1VDExOjQyOjM1KzAwOjAwL1ZH9QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMS0yNVQx MTo0MjozNSswMDowMF4L/0kAAAAASUVORK5CYII= X-Now-Playing: Fairport Convention's _Come All Ye (5)_: "Flowers of the Forest" In-Reply-To: <837dcx8kkn.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 24 Nov 2021 20:39:20 +0200") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:280109 Archived-At: Eli Zaretskii writes: > The idea is that whatever tests you need to do to with the position it > finds, you do them at the beginning of the property, then you record > the result in it->position, and use that to know when you are at the > end of the property. Oh, you mean keep adding when the min_width eq-ness doesn't change? I guess that could work, but I don't see how that'd simplify anything. >> It's the same issue when called from display_string -- the mode line >> machinery will call the function several times, even if the :propertize >> is around all the specs. > > I don't think so, but maybe I misunderstand something. I've tested, and it does. It's only apparently in specs like " (%l,%c)", though. > I'm afraid that I'm missing something important here. Yes, when called from the mode line we're postponing the stretch computation until the :propertize run is actually over (in the multiple-% case). > (insert "|" (propertize "foo" 'display '(min-width (8.0)) 'face 'match)) > > doesn't work, either. (All I did was remove the final "|" from the > inserted string.) Well, the stretch isn't realised until there's something to stretch too. So at the end of the buffer it's a NOOP, which seems natural to me. But we could change that, of course. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no