From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20739: 25.0.50; Dired switches have no effect when explicit list of files provided Date: Sat, 06 Jun 2015 12:36:31 +0300 Message-ID: <837frhnppc.fsf@gnu.org> References: <3362479c-11a3-4559-88d6-666f03933440@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1433583442 5643 80.91.229.3 (6 Jun 2015 09:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jun 2015 09:37:22 +0000 (UTC) Cc: 20739@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 06 11:37:11 2015 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 1Z1AXP-0006dT-8G for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jun 2015 11:37:11 +0200 Original-Received: from localhost ([::1]:51124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1AXO-00035v-OQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jun 2015 05:37:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1AXL-00035e-6V for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 05:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1AXG-0006nI-6y for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 05:37:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1AXG-0006nC-45 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 05:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z1AXF-0007gv-T0 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 05:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jun 2015 09:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20739 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20739-submit@debbugs.gnu.org id=B20739.143358340229531 (code B ref 20739); Sat, 06 Jun 2015 09:37:01 +0000 Original-Received: (at 20739) by debbugs.gnu.org; 6 Jun 2015 09:36:42 +0000 Original-Received: from localhost ([127.0.0.1]:42552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1AWv-0007gE-Pt for submit@debbugs.gnu.org; Sat, 06 Jun 2015 05:36:42 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:53132) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1AWt-0007fz-8u for 20739@debbugs.gnu.org; Sat, 06 Jun 2015 05:36:40 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NPI00600NGUIX00@a-mtaout22.012.net.il> for 20739@debbugs.gnu.org; Sat, 06 Jun 2015 12:36:32 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPI006T2O0WKZ20@a-mtaout22.012.net.il>; Sat, 06 Jun 2015 12:36:32 +0300 (IDT) In-reply-to: <3362479c-11a3-4559-88d6-666f03933440@default> X-012-Sender: halo1@inter.net.il 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:103650 Archived-At: > Date: Fri, 5 Jun 2015 01:34:40 -0700 (PDT) > From: Drew Adams > > emacs -Q > > Given two files whose names are a.el and b.el, with b.el more recent > than a.el. > > M-: (dired '("foo" "a.el" "b.el") "-lstF") > > The files are listed in alphabetic order, not by date as specified by > arg SWITCHES and as indicated in the mode line. No, they are listed in the order in which you specified them in the list passed as the first argument to 'dired'. That just happened to coincide with alphabetic order in your case. You evidently expected 'dired' to apply the order-related options in switches to the entire list of files. But that's not what 'dired' does when it is called with its 1st argument a list. What it does is invoke 'insert-directory' with each of the files in the list, in order, passing it the value of switches. So when calling 'dired' in this manner, the order-related switches have no effect whatsoever. I've updated the doc string to mention this peculiarity. > Hitting `s' any number of times has no effect on the order of the > files. For the same reason.