From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!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, 15 May 2020 09:43:42 +0300 Message-ID: <831rnl4s0x.fsf@gnu.org> References: <87v9ky9p6o.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="123330"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41250@debbugs.gnu.org, arthur.miller@live.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 08:45:11 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 1jZU5n-000VwO-1h for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 08:45:11 +0200 Original-Received: from localhost ([::1]:43438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZU5l-0007Gl-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 02:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZU5e-0007Ff-Ny for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 02:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZU5e-0005yn-Ec for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 02:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZU5e-0006oJ-Az for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 02:45: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, 15 May 2020 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41250 X-GNU-PR-Package: emacs Original-Received: via spool by 41250-submit@debbugs.gnu.org id=B41250.158952504426090 (code B ref 41250); Fri, 15 May 2020 06:45:02 +0000 Original-Received: (at 41250) by debbugs.gnu.org; 15 May 2020 06:44:04 +0000 Original-Received: from localhost ([127.0.0.1]:35725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZU4i-0006mk-9u for submit@debbugs.gnu.org; Fri, 15 May 2020 02:44:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZU4f-0006m8-SB for 41250@debbugs.gnu.org; Fri, 15 May 2020 02:44:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52163) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZU4Z-0005b2-PW; Fri, 15 May 2020 02:43:55 -0400 Original-Received: from [176.228.60.248] (port=4546 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZU4Z-0000k7-5o; Fri, 15 May 2020 02:43:55 -0400 In-Reply-To: <87v9ky9p6o.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 15 May 2020 01:33:51 +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" Xref: news.gmane.io gmane.emacs.bugs:180294 Archived-At: > From: Juri Linkov > Date: Fri, 15 May 2020 01:33:51 +0300 > Cc: 41250@debbugs.gnu.org > > > I suggest, as small improvement, to introduce a user option to turn off > > or on displaying of ls-switches on modeline. As a suggestion I have > > attached small hack to dired.el as tested on my copy of Emacs, but you > > might wish to rewrite it. Drew had some other suggestions. > > Maybe instead of boolean better to use a number for the allowed limit > that should not grow more than this number that means the length of > switches string that the user can tolerate on the modeline. > > Then modeline will display abbreviation truncated to the specified > number of characters, with an ellipses, on the assumption that > the most important switches are at the beginning of the string. That sounds better. Bonus points for arranging a tooltip that would show the full string when the mouse is over that part of the mode line. > Customizing it to 0 effectively disables the display of switches. Why not simply use nil? We could use zero, but that is a bit "tricky", and doesn't seem to me justified in this case.