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:45:05 +0200 Message-ID: <83zgpwp7v2.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> <83czmtqnl7.fsf@gnu.org> <87h7c5jmbg.fsf@gnus.org> <838rxhqmqv.fsf@gnu.org> <878rxhjlot.fsf@gnus.org> <874k85jlmq.fsf@gnus.org> <87v90khaa8.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="580"; 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:52:19 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 1mpAg6-000APB-5g for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Nov 2021 15:52:18 +0100 Original-Received: from localhost ([::1]:45648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpAg4-00040H-Pt for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Nov 2021 09:52:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpAZ1-0002b0-79 for emacs-devel@gnu.org; Mon, 22 Nov 2021 09:44:59 -0500 Original-Received: from [2001:470:142:3::e] (port=35188 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 1mpAYz-0004QN-QS; Mon, 22 Nov 2021 09:44:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U7cipxJOOnrDFUdgDOt9ciSYbWCIVLqyEf4UOou3TWk=; b=DIJOTxfyeW7m C8nAX1/5c4Y+TwrsnqaxLj9RJfBl1TcbW4I1XZFAsJfNImRCJK03c4ZnrCp8E3dG2lERGQhknuXqj 3zAVJEbmiPCCdM8Af1j5Jusq0sPEMHHGrQbr5lhRMIkunY5+vSkhb5hQ21WxPEuJIn6xjTd/KvMLB jf/UAzHIBhgbl8YdNChTPcHX+6gvPRAsvUh2k2B9h0j17PheYUSTlrb9WDcXNH+Ju/3WV1K27MFfF 6fE7V4M0XKaAYD49Et5bwKJTfgDqtPiQiQ/bquAUmrusJ7GfCThQicXtK8iFNPq5AIvb4LsFoYCUL pemzuTKxhj9Mhha5kGoyMg==; Original-Received: from [87.69.77.57] (port=4169 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 1mpAYz-00061m-Gf; Mon, 22 Nov 2021 09:44:57 -0500 In-Reply-To: <87v90khaa8.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 22 Nov 2021 09:19:59 +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:279915 Archived-At: > From: Lars Ingebrigtsen > Cc: dgutov@yandex.ru, stefankangas@gmail.com, emacs-devel@gnu.org > Date: Mon, 22 Nov 2021 09:19:59 +0100 > > I wondered whether it'd be much work to implement a min-width thing for > a sequence of characters. So with this > > (insert "||" (propertize "foo" 'min-width '(10.0)) "||") > > and the proof of concept patch (it needs some more sanity checking) > below I get: > > which seems promising. However, point movement over the stretch glyph > is very wonky -- Emacs basically refuses to put point after that > stretch glyph. > > Anybody got any tips on what I need to do to get point movement working > here? Do you intend to install something like this when the problems are fixed? Or is this just a prototype to get the impression of what the results could look like? If the latter, we just need to fix the immediate issue with the cursor (if it is at all relevant, since this is for mode line AFAIU?). If it's the former, we need to talk about the design, because the way you wrote the code, it violates several protocols of the display engine, and that needs to be fixed first (and will probably also fix the problems you have with the cursor). Thanks.