From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on modeline Date: Wed, 30 Sep 2020 22:58:00 +0300 Organization: LINKOV.NET Message-ID: <875z7vdol3.fsf@mail.linkov.net> 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> 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="38557"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 41250@debbugs.gnu.org, Arthur Miller To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 30 22:01:57 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 1kNiIX-0009wX-Cc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 22:01:57 +0200 Original-Received: from localhost ([::1]:34022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNiIW-0000Zo-C3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 16:01:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNiFi-0006SL-Ku for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNiFi-0007AJ-9F for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNiFi-0006Bs-7Q for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 15:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 19:59: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.160149592623775 (code B ref 41250); Wed, 30 Sep 2020 19:59:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 30 Sep 2020 19:58:46 +0000 Original-Received: from localhost ([127.0.0.1]:33191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNiFS-0006BP-47 for submit@debbugs.gnu.org; Wed, 30 Sep 2020 15:58:46 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:43353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNiFN-0006B8-Jp for 41250@debbugs.gnu.org; Wed, 30 Sep 2020 15:58:44 -0400 X-Originating-IP: 91.129.108.13 Original-Received: from mail.gandi.net (m91-129-108-13.cust.tele2.ee [91.129.108.13]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id AD439C0006; Wed, 30 Sep 2020 19:58:33 +0000 (UTC) In-Reply-To: <87tuvfxdsf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Sep 2020 21:30:56 +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:189429 Archived-At: > Would anybody mind very much if I added a `string-truncate-right' that > does all this automatically, and amend `string-truncate-left' in the > same way? I.e., use (if (char-displayable-p ?…) "…" "..."). There is a better function 'truncate-string-to-width'. But users need to set up 'truncate-string-ellipsis' explicitly in init files as (with-eval-after-load 'mule-util (setq truncate-string-ellipsis "…"))