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#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Date: Fri, 02 Oct 2020 17:59:34 +0300 Message-ID: <83v9fsekrt.fsf@gnu.org> References: <87v9ky9p6o.fsf@mail.linkov.net> <654acc31-015d-4552-bd9b-3b8c69661fcd@default> <0957af50-7f85-455a-9d2c-e96451727872@default> <6073a2d5-4024-465d-8293-88ad7f6127ed@default> <87mu172qxb.fsf@gnus.org> <87sgazi550.fsf@mail.linkov.net> <87tuvfxdsf.fsf@gnus.org> <875z7vdol3.fsf@mail.linkov.net> <87pn63xcgp.fsf@gnus.org> <874knd7mow.fsf@mail.linkov.net> <877ds91zvy.fsf@gnus.org> <87lfgpm82u.fsf@mail.linkov.net> <87sgawww8o.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21025"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41250@debbugs.gnu.org, arthur.miller@live.com, juri@linkov.net To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 17:10:56 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 1kOMi0-0005KT-29 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 17:10:56 +0200 Original-Received: from localhost ([::1]:48860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOMhx-000208-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 11:10:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOMXT-0005fP-8y for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 11:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOMXS-0006FB-Rx for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 11:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOMXS-0005qO-QL for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 11:00: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: Fri, 02 Oct 2020 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.160165078322412 (code B ref 41250); Fri, 02 Oct 2020 15:00:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 2 Oct 2020 14:59:43 +0000 Original-Received: from localhost ([127.0.0.1]:42278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMX9-0005pQ-Ct for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:59:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMX7-0005pE-TU for 41250@debbugs.gnu.org; Fri, 02 Oct 2020 10:59:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60714) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOMX2-0006Ao-2b; Fri, 02 Oct 2020 10:59:36 -0400 Original-Received: from [176.228.60.248] (port=4948 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOMX1-0006pS-Gc; Fri, 02 Oct 2020 10:59:35 -0400 In-Reply-To: <87sgawww8o.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 02 Oct 2020 16:14:31 +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:189656 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 02 Oct 2020 16:14:31 +0200 > Cc: 41250@debbugs.gnu.org, Arthur Miller > > > (let ((ellipsis (cond > > (truncate-string-ellipsis) > > ((char-displayable-p ?…) "…") > > ("...")))) > > (truncate-string-to-width string max nil nil ellipsis)) > > > > Preferably, this should be fixed with this patch: > > Your patch is a distinct improvement on the current state of affairs, so > please go ahead and push to master (with a NEWS item). > > A new function that's more pixel-aware can be added at a later date, and > is pretty much an orthogonal issue anyway. To be pixel-aware, we need to use window-text-pixel-size.