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.bugs Subject: bug#52324: 29.0.50; "Padded" mode line lacks uniform border Date: Mon, 06 Dec 2021 16:47:17 +0200 Message-ID: <83k0gh23ka.fsf@gnu.org> References: <877dciyusl.fsf@protesilaos.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3278"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52324@debbugs.gnu.org To: Protesilaos Stavrou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 06 15:48:16 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 1muFHq-0000aT-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 15:48:14 +0100 Original-Received: from localhost ([::1]:50774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muFHp-0004Ul-0Q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Dec 2021 09:48:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muFHe-0004TW-Dm for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 09:48:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muFHe-0004TG-65 for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 09:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muFHe-0004Km-5D for bug-gnu-emacs@gnu.org; Mon, 06 Dec 2021 09:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Dec 2021 14:48:02 +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.163880204916490 (code B ref 52324); Mon, 06 Dec 2021 14:48:02 +0000 Original-Received: (at 52324) by debbugs.gnu.org; 6 Dec 2021 14:47:29 +0000 Original-Received: from localhost ([127.0.0.1]:60947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muFH7-0004Hs-Ce for submit@debbugs.gnu.org; Mon, 06 Dec 2021 09:47:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muFH6-0004Hg-2q for 52324@debbugs.gnu.org; Mon, 06 Dec 2021 09:47:28 -0500 Original-Received: from [2001:470:142:3::e] (port=55576 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 1muFH0-0004P1-KZ; Mon, 06 Dec 2021 09:47:22 -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=TB+yD4A4mpFgGRs5C0QDzJ6fo8yFUIiHGOk8jvl0KLs=; b=IedD9+2F69YJ ojpa99zX57Mdbf5zFt8izN0U5M4EqtELHBaplKuQFiP0oucu6DDMPRj2iKpbPwP7r/NZxelWhoMnK Z6MoD0K2rgkXOps8mCgDmKPBycP+CMcvLRpJcJ3dV9bRnoS70N1axAJZeBC2a4fB83wV7dnQ9Z8ub YBAoo604OMQWWtuinuWjOgoqTUSeuewdVAc5KIGmwkxOTfaXS675kqG/Jq1tbVrONWf8jYNd9ISos +2KzB2P8xfmt3ibQU3vo3oAlGnHDrotJ2mhhfC94X61nTd2wxoFUNwF9SYkCa+LvoTP2VrmVTa5J4 xog8s1OIvyTEY85IM8R7nw==; Original-Received: from [87.69.77.57] (port=4857 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 1muFGy-0007Z2-9A; Mon, 06 Dec 2021 09:47:20 -0500 In-Reply-To: <877dciyusl.fsf@protesilaos.com> (message from Protesilaos Stavrou on Mon, 06 Dec 2021 10:58:02 +0200) 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:221755 Archived-At: > 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. > 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. Thanks.