From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.bugs Subject: bug#52324: 29.0.50; "Padded" mode line lacks uniform border Date: Mon, 06 Dec 2021 19:13:32 +0200 Message-ID: <87lf0xd5c3.fsf@protesilaos.com> References: <877dciyusl.fsf@protesilaos.com> <83k0gh23ka.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="15156"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.34.1 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 52324@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 06 18:14:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1muHZ4-0003l9-DQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 18:14:10 +0100 Original-Received: from localhost ([::1]:44316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muHZ3-0000kv-9x for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 12:14:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muHYw-0000kP-G1 for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 12:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muHYw-0005CV-4F for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 12:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muHYv-0000fO-Vr for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 12:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Protesilaos Stavrou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Dec 2021 17:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52324 X-GNU-PR-Package: emacs Original-Received: via spool by 52324-submit@debbugs.gnu.org id=B52324.16388108212508 (code B ref 52324); Mon, 06 Dec 2021 17:14:01 +0000 Original-Received: (at 52324) by debbugs.gnu.org; 6 Dec 2021 17:13:41 +0000 Original-Received: from localhost ([127.0.0.1]:35258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muHYa-0000eO-W8 for submit@debbugs.gnu.org; Mon, 06 Dec 2021 12:13:41 -0500 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:44909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muHYa-0000eA-21 for 52324@debbugs.gnu.org; Mon, 06 Dec 2021 12:13:40 -0500 Original-Received: (Authenticated sender: public@protesilaos.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 627B7240004; Mon, 6 Dec 2021 17:13:32 +0000 (UTC) In-Reply-To: <83k0gh23ka.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221768 Archived-At: On 2021-12-06, 16:47 +0200, Eli Zaretskii wrote: >> From: Protesilaos Stavrou >> Date: Mon, 06 Dec 2021 10:58:02 +0200 >> >> In an emacs -Q session with version 27 we could evaluate the following >> to make the mode line look more spacious ("padded", so to speak): >> >> (setq x-underline-at-descent-line t) >> >> (set-face-attribute 'mode-line nil >> :foreground "black" >> :background "gray80" >> :box '(:line-width 6 :color "gray80") >> :overline "gray30" >> :underline "gray30" >> :distant-foreground 'unspecified) >> >> Whereas with master, the same results in a box with interrupted lines. > > This seems to be a general bug regarding display of stretches of > whitespace with overline and underline. In Emacs 27, after evaluating > the above settings, try this: > > M-: (setq mode-line-format "%b %p HELLO") RET > > where the whitespace between %b and %p is 2 TAB characters. you will > see that the stretch glyph produced for the TABs lacks the overline > and underline in Emacs 27 as well. > > So this is not a bug introduced by the recent changes in the mode > line, it is a bug that was always in Emacs, and those recent changes > just exposed it. > > I'll try to dig into this when I have time. I see. Thanks! >> Furthermore, there exists an invisible button (?) to the left of the >> "All" text. The emacs-29-mode-line-padded-mouse-pointer-button.png >> shows it and also captures the tooltip. (Maybe these are related to the >> same underlying change on how the mode line is produced, otherwise I can >> file a separate bug report). > > I think that's a separate bug, so please file a separate report for > it. Did that in bug#52332. -- Protesilaos Stavrou https://protesilaos.com