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: Mon, 05 Oct 2020 23:15:32 +0300 Organization: LINKOV.NET Message-ID: <87pn5wtofj.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> <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> <87y2klixr5.fsf@mail.linkov.net> <87r1qdqhes.fsf@gnus.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="36209"; 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 Mon Oct 05 22:38:29 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 1kPXFc-0009J3-Ut for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 22:38:28 +0200 Original-Received: from localhost ([::1]:56798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPXFb-0007SY-Ve for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 16:38:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPX1f-0001En-Op for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 16:24:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPX1e-0002F2-Ua for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 16:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPX1e-0004L6-SE for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 16:24: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: Mon, 05 Oct 2020 20:24: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.160192941516640 (code B ref 41250); Mon, 05 Oct 2020 20:24:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 5 Oct 2020 20:23:35 +0000 Original-Received: from localhost ([127.0.0.1]:50643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPX1D-0004KJ-Ax for submit@debbugs.gnu.org; Mon, 05 Oct 2020 16:23:35 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:32803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPX19-0004Jr-8c for 41250@debbugs.gnu.org; Mon, 05 Oct 2020 16:23:33 -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 relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 24B631C0003; Mon, 5 Oct 2020 20:23:22 +0000 (UTC) In-Reply-To: <87r1qdqhes.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 05 Oct 2020 09:08:11 +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:189847 Archived-At: >> - `(truncate-string-to-width str strlen (- strlen ,maxvar) nil ?\s) >> + `(truncate-string-to-width str strlen (- strlen ,maxvar) ?\s) >> `(truncate-string-to-width ,strvar ,maxvar nil ?\s))) > > Testing should be pretty easy -- just say `M-x ibuffer' and look at how > it truncates buffer names. :-) > > However, the patch doesn't fix the ellipsis stuff here, because ibuffer > has a `ibuffer-eliding-string' variable (that could be obsoleted now). Yep, this is what I tried, but it had no immediate effect :-) > (But the patch otherwise looks "obviously correct" to me; passing in ?\s > as the ellipsis argument doesn't make much sense.) It seems this code is over-complicated with several levels of backquoting. So maybe better just to push this obvious fix.