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#64851: 30.0.50; mode-line right align and vertical scroll-bars Date: Tue, 25 Jul 2023 16:39:40 +0300 Message-ID: <83r0owp0tf.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64851@debbugs.gnu.org To: German Pacenza , Hugo Heagren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 25 15:40:16 2023 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 1qOIGu-0004OD-08 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jul 2023 15:40:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOIGj-0003GQ-7z; Tue, 25 Jul 2023 09:40:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIGh-0003G0-4v for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 09:40:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOIGg-0008Ix-Ru for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 09:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOIGg-00063P-3A for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jul 2023 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64851 X-GNU-PR-Package: emacs Original-Received: via spool by 64851-submit@debbugs.gnu.org id=B64851.169029234623189 (code B ref 64851); Tue, 25 Jul 2023 13:40:02 +0000 Original-Received: (at 64851) by debbugs.gnu.org; 25 Jul 2023 13:39:06 +0000 Original-Received: from localhost ([127.0.0.1]:44923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOIFl-00061x-Ln for submit@debbugs.gnu.org; Tue, 25 Jul 2023 09:39:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOIFi-00061P-Rz for 64851@debbugs.gnu.org; Tue, 25 Jul 2023 09:39:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOIFc-00086Z-Q7; Tue, 25 Jul 2023 09:38:56 -0400 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=WvGmhhfxz7FtIpKBVYSBZWEDkobr36j+uERxS/Nvd9c=; b=jvhSnTiI3Kqu Hjr5nEjNoabP9SNy1gUGvy9Qm/n+i1xqrl5S8fMYFpbmR826jD2WGH/KOr3I2hoh371Y2OrmnjMCj SYuf9jT09CiL0jwE2PozbBApyw1pGdOmbMFvvqMU3pYG4hX15C+DBzW6xLnOI6XE8vUUzW2YaY5oL Tq8YYZ6eMByPFNnrdy7q4Z5CTmWoH4J5qLrnXcYg2KBUvjzTkZplD1UO2Eks2MEApE2cYZyQ9wM7r rzrkVfNtFZwHSzU26eVKwmjmEhmgaLrTg9cK7qc7mQBbZyWQOjU+ENd2mj6ZQFY6F/cspSLQMBa8z R/YmO6HmJSyPEeMy49pIMg==; Original-Received: from [87.69.77.57] (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 1qOIFc-0001L4-8n; Tue, 25 Jul 2023 09:38:56 -0400 In-Reply-To: (message from German Pacenza on Tue, 25 Jul 2023 08:06:11 -0300) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266062 Archived-At: > From: German Pacenza > Date: Tue, 25 Jul 2023 08:06:11 -0300 > > > emacs -Q: > (scroll-bar-mode 0) > (setq-default mode-line-format '("" > mode-line-format-right-align > mode-line-position)) > Visit a very large file like xdisp.c and move to eob. > The line number get truncated. Personally, I think the only reasonable response to this report is "Don't do that". The value of mode-line-position accounts only for 4 digits in the line number (it uses min-width 5.0, with one character taken up by the leading "L"), and that is insufficient for buffers larger that 9999 lines. So if this is what you want, i.e. you want mode-line-position to be the last part of the mode line, you need to redefine mode-line-position to support more digits in the line number. There seems to be an off-by-one error in the alignment computed by mode--line-format-right-align, though, because adding one more space to mode-line-position is insufficient to show the full 5 digits of xdisp.c's line numbers: one needs two extra place, not one. I hope Hugo (CC'ed) will be able to find this minor mistake. Thanks.