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: Fri, 19 Nov 2021 09:30:07 +0100 Message-ID: <878rxkv980.fsf@gnus.org> References: <87bl2hyzca.fsf@gnus.org> <8735nszpdv.fsf@gnus.org> <87sfvswrp8.fsf@gnus.org> <834k88woaj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40780"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: dgutov@yandex.ru, stefankangas@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 19 09:33:42 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 1mnzL3-000APF-Jf for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Nov 2021 09:33:41 +0100 Original-Received: from localhost ([::1]:54494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnzL2-0003sc-7k for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Nov 2021 03:33:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnzHn-0001Xu-B9 for emacs-devel@gnu.org; Fri, 19 Nov 2021 03:30:19 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=47614 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 1mnzHk-0004bv-Mp; Fri, 19 Nov 2021 03:30:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=MW2h2MgSNPA0vIo9yQ3D9c94bfdhRR1sfCJ+uWCTop0=; b=jaD3CtxqbyEaczIiEC8QM+S7LS EEr0VQOWONsgwHyFWt+ajMae1DvKoQDunblRZ89zoFDSVXBNExixDZGw1dlsmhTrhslu/pbCjzjke m66ACY1AUoknJZKUo8pRN5IkTErA+NjBnX3QMliAFaEn8EoZSdnuPYYrgxYNp6KA1+B0=; 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 1mnzHe-0000FW-3V; Fri, 19 Nov 2021 09:30:13 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEX8/PzWztRpVViE dX6dlqJXLywrIi3///9+PQjOAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+ULEwgUGIzw90oAAAF6SURB VDjLjdJRjoMgEAZgTPYAmvYAdSy+V/S9VXoBkuEA3WXuf4SdAdy2aJOdxBj4/BlEldqpCgwUU03T VHxtIdcAAvUHqOwWZoEj1Psww3UXvgDaHTirA0BXb2HhC+FSwt3dFWjgXFHTWSvgxKb9sAQGqXOT K7Y7wIQJBrBmtLnGEdAlcB3YZYXFmBk0KpRyMWF4rjNci2MISEgQx1IDnx+YoEneBYzjgZEZE29d z4kFjmDR03uFXllTmaOj/wL2ag5Hss5jUQzUMPTFvJ4i3Ergk+Wl9gCGmLhsAdTNVrYpgN+3U9f4 S/oSWhVPCTjBB/e2VN72y/M+gZMPIoP4whjvLoN2Ap4CJgguLbUmEMOzeezBmQRUgDQkeZxS65hU z0+A6XPFNkhrIvxtNZdKQx98TlFO8X/VQacTxN3mbStDN98ySIP8HpQAG93mREhLPmRfaoQGYoLh O26cHnKcGbAAt5+YUqIeThl+SmgLuK9wmT7AacJXIIFfiN0FHHLA3DsAAAAldEVYdGRhdGU6Y3Jl YXRlADIwMjEtMTEtMTlUMDg6MjA6MjMrMDA6MDCCTgv9AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIx LTExLTE5VDA4OjIwOjIzKzAwOjAw8xOzQQAAAABJRU5ErkJggg== X-Now-Playing: Martin Finke's _Crown Time_: "Truth and Timing" In-Reply-To: <834k88woaj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 19 Nov 2021 10:19:16 +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:279734 Archived-At: Eli Zaretskii writes: > Using proportional fonts on the mode line will cause annoying > horizontal shifts when, say, "--" is replaced with "**" or ""%%" is > replaced with "%*", or when the line number changes or the time shown > in the mode line changes. So if we want to use such fonts there and > avoid such shifts, we will need to treat the mode line as a kind of > table, where each part starts at a horizontal position that is aligned > at pixelwise resolution. We'll probably need to see what this means > for the current implementation of mode-line display, especially with > those :eval parts. Yes, we've previously discussed adding a new type of mode line spec, but I don't think we got all the way there in how it's supposed to work, so perhaps we could just continue that discussion here? =F0=9F=98=80 So, to recap: We'd like to be able to ensure that the mode line elements don't change width all the time, because that'd be annoying. Some fonts have digits that are of uneven width -- this is very rare, but they do exist, and that would make column number mode change the width all the time. I think my suggestion was to add a spec that says "this bit of the mode line should take at least x pixels" (or "y times the width of the x character"). This would fix the issue with the column indicator. And... I think that also fixes the issue with "--" changing to "**"? That is, we'd have something like: (defvar-local mode-line-mule-info `("" (:min-space 5 (current-input-method (:propertize ("" current-input-method-title) For instance. That is, I don't think we have to go full table on this -- the number of affected mode line elements isn't large. (And I don't think we can go to a table based lineup, because the mode line format is just too variable.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no