GNU bug report logs - #41250
28.0.50; Dired displays unconditionally ls-switches on modeline

Previous Next

Package: emacs;

Reported by: Arthur Miller <arthur.miller <at> live.com>

Date: Thu, 14 May 2020 01:43:01 UTC

Severity: minor

Tags: fixed

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #50 received at 41250 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Arthur Miller <arthur.miller <at> live.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 41250 <at> debbugs.gnu.org, juri <at> linkov.net
Subject: RE: bug#41250: 28.0.50; Dired displays unconditionally ls-switches on
 modeline
Date: Fri, 15 May 2020 15:19:00 -0700 (PDT)
> I am actually now wondering, why is it assumed that
> Dired will show sorting order on modeline by default?

Because it's useful.  And it is very common to use
`s', to toggle between name and date sorting.  Those
are the common sorts, and switches that match their
regexps are the most common.

Those predefined regexps could presumably be tweaked
to accommodate more patterns that have time in them,
but IMHO it's not worth it.

This mode-line indication is not, primarily, about
showing you the current `ls' switches.  It's about
telling you whether files are sorted by name or time.

The relevant function is called `dired-sort-set-mode-line'.
                                       ^^^^




This bug report was last modified 4 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.