From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#16533: 24.3.50; "s" no longer works as documented in dired Date: Sat, 25 Jan 2014 20:31:44 -0500 Message-ID: References: <8361p8cnll.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1390699930 6098 80.91.229.3 (26 Jan 2014 01:32:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2014 01:32:10 +0000 (UTC) Cc: 16533@debbugs.gnu.org, markus.triska@gmx.at To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 26 02:32:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7Ea8-0002kT-PP for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Jan 2014 02:32:16 +0100 Original-Received: from localhost ([::1]:53145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Ea8-0005l1-89 for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 20:32:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Ea0-0005kt-2m for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 20:32:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7EZv-0001uT-0d for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 20:32:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7EZu-0001uP-Tx for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 20:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7EZu-00028P-Hk for bug-gnu-emacs@gnu.org; Sat, 25 Jan 2014 20:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jan 2014 01:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16533 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16533-submit@debbugs.gnu.org id=B16533.13906999098167 (code B ref 16533); Sun, 26 Jan 2014 01:32:02 +0000 Original-Received: (at 16533) by debbugs.gnu.org; 26 Jan 2014 01:31:49 +0000 Original-Received: from localhost ([127.0.0.1]:36017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7EZg-00027d-4p for submit@debbugs.gnu.org; Sat, 25 Jan 2014 20:31:48 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:52704) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7EZd-00027S-5q for 16533@debbugs.gnu.org; Sat, 25 Jan 2014 20:31:45 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W7EZc-00006K-EE; Sat, 25 Jan 2014 20:31:44 -0500 X-Spook: diwn UNSCOM $400 million in gold bullion Semtex credit X-Ran: ZdpRR"+[uuwa&TVN4vEFO(M+keHUp/"Yo:y-(%wx1I'()?s?Iy:m (Eli Zaretskii's message of "Sat, 25 Jan 2014 13:22:46 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84025 Archived-At: Eli Zaretskii wrote: > The problem here seems to be that dired-sort-toggle blindly adds the > "-t" flag to dired-actual-switches, although in this case the sorting > is not by date at all. I don't understand the logic here; it seems > like dired-sort-toggle assumes without testing that the directory is > sorted either by date or by name, which is of course false. > > Is it a portable assumption that the last switch that determines the > sorting order overrides all the previous ones? If so, ls-lisp.el > should be fixed to implement that requirement. But if not, we need to > fix dired.el not to put more than one sorting option into > dired-actual-switches. In particular, the logic in dired-sort-toggle > seems to be flawed. Duh, I seem to have been very thick here, since the original report seems clear now. I guess I missed the 'then press "s"'. I guess it is not a portable assumption, since presumably whatever crappy ls Mac OS X uses does not work that way. Prior to r101356, dired-sort-toggle removed dired-ls-sorting-switches. Now it seems not to. That change was made to fix another bug, http://debbugs.gnu.org/6987