From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Proportional fonts in the mode line (one month test) Date: Sat, 27 Nov 2021 13:50:53 -0800 Message-ID: References: <87h7c1u0cg.fsf@gnus.org> <87fsrl2ilj.fsf@yahoo.com> <87bl292hlu.fsf@yahoo.com> <87mtlse52y.fsf@gnus.org> <87k0gvon01.fsf@gmail.com> <871r339jsm.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17753"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , emacs-devel@gnu.org To: Lars Ingebrigtsen , =?UTF-8?Q?K=c3=a9vin_Le_Gouguec?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 22:51: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 1mr5bu-0004Pz-Dk for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 22:51:54 +0100 Original-Received: from localhost ([::1]:42232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mr5bs-0000NA-Am for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 16:51:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr5b3-00089F-Fh for emacs-devel@gnu.org; Sat, 27 Nov 2021 16:51:01 -0500 Original-Received: from [2607:f8b0:4864:20::42b] (port=34363 helo=mail-pf1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mr5b1-0007DK-MB for emacs-devel@gnu.org; Sat, 27 Nov 2021 16:51:01 -0500 Original-Received: by mail-pf1-x42b.google.com with SMTP id r130so12483012pfc.1 for ; Sat, 27 Nov 2021 13:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=TQ4jz6XT+YMjwxYnFCpuPvvT17oZfFCvRpYg4WJBie0=; b=DqHMPvhRnrog9B3JRDIq1HkwHYyNDUEmiUy89hB6KA9EgPHuHTTWD+OxEqYxpopgdM IDZgfwyWSdF5FtQq+D1GVqTgEb07jjqoV2TJHB7gjSKCEd9BMrkBvNg3hLiCkPLIJMHB tzF8gVj9yfhUZAXTRstTZkw+TU2LqdpadBf658TeF3Y5UCKkYbpWoQxaqToX9xTlRwlB bIhMGqetg2PMIozEmcEwI1APfT1lOUVUtjFc6+5Mq8s/F5nyb5PCHQivNCpgPYplnvdX KmxbM9D7xL0DILH479Furrh5CE2MiWcS5pd2SK5TFl7KirzZvM8WODrymI2RNT2oY3+G iX1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TQ4jz6XT+YMjwxYnFCpuPvvT17oZfFCvRpYg4WJBie0=; b=tMDoIzDDwFny8GYNaAnMB54C/lR6C85JJNW+9+9Yin0L03p2I/zK2xBcIq0+GLtYFW 2iM74eXQlRZ7ibGTLd0A82Y2HJyP7bWy+MMEu9EvI6fi5xrn3LZ29rQkuhXcOD95I0rS cJv9lg54xZugONWDldA3m3Idp75Xutq6FmjNJZbF8KWRTAki4Ft+uMRKt1WAafFe/9zp kp+POxsoC5l44fswAfGaHdyBXWsZJWzXc5ErOmJ2Dh35pJNGflHGmEdh9mJ8LJPQ0JSi rylMPVAH2F7XYCxXOMZWBolOnY1HaoePBfcAshgE8H94wGXw89n2Hebtas2mHbUdBP45 7V9A== X-Gm-Message-State: AOAM5331FnM9X0ums1EDZeJ+pz3XiqQ/uZCVlo48Bka1PHH737eog8ZM u+7S0jiopZpUKrCvU5KNZCd++YX5kmg= X-Google-Smtp-Source: ABdhPJy0dZapLKgnLVs9rOzKeC+liCqsVUpuoxhkCbyF74PhuXeOW+yjy1ZiumySB4YlX1nl6pFARA== X-Received: by 2002:a05:6a00:23c4:b0:49f:e054:84cb with SMTP id g4-20020a056a0023c400b0049fe05484cbmr29635776pfc.63.1638049855717; Sat, 27 Nov 2021 13:50:55 -0800 (PST) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id e10sm12051388pfv.140.2021.11.27.13.50.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Nov 2021 13:50:55 -0800 (PST) In-Reply-To: <871r339jsm.fsf@gnus.org> Content-Language: en-US X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=jporterbugs@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:280356 Archived-At: On 11/26/2021 4:35 AM, Lars Ingebrigtsen wrote: > The one wrinkle here, though, is that in this case, one of the > characters used here -- "%" -- is usually much wider than the "normal > character width", so ensuring no movement at all would mean that the "-" > would be surrounded by a lot of space. This points to a similar problem I mentioned, but in reverse: If a buffer is currently read-only and I click the first "%", it will change to "-"[1] and thus become narrower. Depending on where my mouse pointer is, that could mean it's now hovering over the "modified" indicator, so if I click again, I end up changing the "modified" state, not the "read-only" state. I think for a series of consecutive buttons, we should do whatever we can to ensure that they don't shift positions unnecessarily, and especially not when clicking on them. Whether this is ensured by :min-width/:max-width specifications, monospace fonts, or using (SVG) icons doesn't matter too much, so long as the buttons aren't shifting around. A monospace font does have the advantage of being the easiest solution though; it Just Works today. - Jim [1] Assuming the buffer is unmodified.