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: Sat, 20 Nov 2021 10:01:45 +0200 Message-ID: <83ilwntfva.fsf@gnu.org> References: <87bl2hyzca.fsf@gnus.org> <8735nszpdv.fsf@gnus.org> <87sfvswrp8.fsf@gnus.org> <834k88woaj.fsf@gnu.org> <878rxkv980.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4670"; 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 Sat Nov 20 09:04:35 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 1moLMR-0000zt-9u for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Nov 2021 09:04:35 +0100 Original-Received: from localhost ([::1]:52168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moLMP-0005EQ-TE for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Nov 2021 03:04:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moLJj-00039W-Ui for emacs-devel@gnu.org; Sat, 20 Nov 2021 03:01:48 -0500 Original-Received: from [2001:470:142:3::e] (port=59914 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 1moLJj-0003oA-Jf; Sat, 20 Nov 2021 03:01:47 -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=76Ugv3paDn0CelYeaCxNOIsvFIvVH5PM8aqCXhm12os=; b=Y/LrAzt5nVUy ITcncZQzvf4tjWtlJP5nBioXZDmaRjgevq70AIVS1QODXDVSS+lzbvyrOGY7Y2zMlnm2hEDV32OkX R2JPYyszNf6vMGepZlyMxHSFmDYb3L5IPoE+YDFNeYF9XW4/+d3PkFhUQE5iIz8PIyt/WZKI+6Dk7 c9u08EH4ftUzGGQUDQj/RhkwEATxzrP5AH7UyZ9xwKcDSmxLYM8ZC1yQwjwp07f+wAC0y6uD+YuPK uXLmVQueKripP/RnKqnl/1KEwQHTIw49ueCzeWYSlcFPwvaZuaaf4Zv3ONT8IymgljEEF0NyYpwwZ fFmpQ3/aXxEt4NtbDM7Z8A==; Original-Received: from [87.69.77.57] (port=1156 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 1moLJg-0000x3-8c; Sat, 20 Nov 2021 03:01:46 -0500 In-Reply-To: <878rxkv980.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 19 Nov 2021 09:30:07 +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:279790 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 19 Nov 2021 09:30:07 +0100 > Cc: dgutov@yandex.ru, stefankangas@gmail.com, emacs-devel@gnu.org > > 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.) The problem is how to select the appropriate "x character" to use as the unit of width. Different fonts will have different characters suitable for this role, so how to have a default spec that will DTRT with whatever fonts are selected on different platforms for the relevant faces?