From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#34476: fluffy whitespace in the mode-line, despite it running off the screen Date: Tue, 29 Dec 2020 16:07:50 +0100 Message-ID: <87y2hgsla1.fsf@gnus.org> References: <87lg2icx3u.fsf@jidanni.org> <87wo295wob.fsf@gnus.org> <83364x79jl.fsf@gnu.org> <83zh755udw.fsf@gnu.org> <87k0y94c8p.fsf@gnus.org> <83sgcx5mbm.fsf@gnu.org> <87tuxdxly3.fsf@gnus.org> <83r1sh5gjc.fsf@gnu.org> <87d040w3av.fsf@gnus.org> <83ft8v6hh7.fsf@gnu.org> <83sgcu4kz2.fsf@gnu.org> <83lfihld38.fsf@gnu.org> <83wo20jnwq.fsf@gnu.org> <87zh6wyy8q.fsf@gnus.org> <83h7t4j64c.fsf@gnu.org> <874kp2x2d9.fsf@gnus.org> <83ft8mirca.fsf@gnu.org> <874kp1r7s4.fsf@gnus.org> <83mu2tgxv1.fsf@gnu.org> <871rf9gtbx.fsf@gnus.org> <83czysk64a.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="6839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: contovob@tcd.ie, 34476@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 29 16:09:12 2020 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 1kuGcZ-0001cx-58 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Dec 2020 16:09:11 +0100 Original-Received: from localhost ([::1]:36470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuGcY-0000uR-73 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Dec 2020 10:09:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuGcQ-0000tx-OU for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 10:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kuGcQ-0002yZ-HK for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 10:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kuGcQ-0006hQ-CF; Tue, 29 Dec 2020 10:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 29 Dec 2020 15:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34476 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: fixed Original-Received: via spool by 34476-submit@debbugs.gnu.org id=B34476.160925448325674 (code B ref 34476); Tue, 29 Dec 2020 15:09:02 +0000 Original-Received: (at 34476) by debbugs.gnu.org; 29 Dec 2020 15:08:03 +0000 Original-Received: from localhost ([127.0.0.1]:39933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuGbT-0006g2-Ie for submit@debbugs.gnu.org; Tue, 29 Dec 2020 10:08:03 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:55294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuGbQ-0006fN-2R for 34476@debbugs.gnu.org; Tue, 29 Dec 2020 10:08:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UmEPWz7zK4Bc8wg9OFz5qVAF1Tv9Oe3w2wLVQlIakD8=; b=TAf77Hrd2AZmVoa0e8UvBbN4Ia kRgzz+V8e3Wu8t575RNXcRgTRrv2qY6d17wHW/VlolB3T4S/Mn7NfMFtHDyDWV7JClwLkbjxTakuJ L1/2wrKeqDNCte9phUmGC8XHNhjceEkdKYsYur9AyLkZ8BpkPhk2O1Ub1bdg+uZ5/VlE=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuGbH-0002lf-ID; Tue, 29 Dec 2020 16:07:54 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEWeYy+RVipwSCuk Z0FWMB0WDA96gpLItLmco7HHuMH///+eVUZAAAAAAWJLR0QKaND0VgAAAAd0SU1FB+QMHQ8FGq3L 23UAAAGUSURBVDjLfZNhcoIwEIWTeoEsbQ+QDPY3U6b/S2Y5gA57BcYbRC8AeAL1tt2EBBGxbxyQ /XhvswGEECAk8AG0Nl7AP62FEJIvsm9rTaUxz/nCosGKwZsNAI0NwAZgGQglpBQA2miT8QkAlFQe lGW54UTgalAoBm0K3wom+ZpMUAEgNXYCkADAG7GmqOTgoA8PdHIkyWwGZu0VT8nA1BHIGMVLDaCt q7G7VCq0l2AQc6KvbQJhboZZjlgT4ehQvirYxAADIKruvSEmMWganAHlASchkn0B6obG5U5jJEDU LOZLAOfAH2UEP7uFQ2YRVK/AumNL9X4JfHdbp8n9XsXp/Wb51RJZHZ6USs81p0kI0r+aYXL1SXP9 8q1jmNqOFTuedtOAqn5w7O+buABFBJlZA+9lsQ42ZWHwf4CPgD+CGDXZdlwrhXNuWKjnmhMX547z 6mHohjXQtV039KwnELL6fsXRtgfucnrqERUcbgWc1sD5drtdngDnni9xuUtwGgH7rtc74L83L78l 7GiTDse27R37/gAXtwug3/z79wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMi0yOVQxNTowNToy NiswMDowMFP0bjoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTItMjlUMTU6MDU6MjYrMDA6MDAi qdaGAAAAAElFTkSuQmCC X-Now-Playing: Grace Jones's _Nightclubbing (1)_: "I've Done It Again" In-Reply-To: <83czysk64a.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 29 Dec 2020 17:02:29 +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:196937 Archived-At: Eli Zaretskii writes: > You are comparing the number of characters with the window-body width, > but the latter is measured in units of the frame's canonical character > width, i.e. the average width of the default face's font. If someone > modifies the mode-line face to use a font of a different size, or even > has enough wide characters there to violate the "1 character = 1 > column" assumption, that test will produce either truncated mode-line > string or will unnecessarily squeeze spaces from it. Yup. I was also not quite sure of the selected_window itself -- can the mode line be updated while another window is selected? But I tried various scenarios, and I couldn't get it to pick the wrong window to do the computation on. So perhaps that bit is OK? > I understand the difficulty of doing TRT, but perhaps we should at > least document this limitation, so that users don't expect too much > from this feature, and we don't get bug reports that will be hard to > fix? Yup; will do. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no