From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Sorting of directories in dired Date: Thu, 07 Jul 2005 23:08:31 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1120769109 10501 80.91.229.2 (7 Jul 2005 20:45:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 20:45:09 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 22:45:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqdEQ-000157-GW for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2005 22:44:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqdFn-0006mz-OA for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2005 16:45:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqdEJ-0006JL-4k for emacs-devel@gnu.org; Thu, 07 Jul 2005 16:44:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DqdEH-0006IT-Fb for emacs-devel@gnu.org; Thu, 07 Jul 2005 16:44:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqdBs-0005Rj-1D; Thu, 07 Jul 2005 16:41:48 -0400 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DqcmG-000443-7t; Thu, 07 Jul 2005 16:15:21 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-8-60.inter.net.il [80.230.8.60]) by legolas.inter.net.il (MOS 3.5.8-GR) with ESMTP id EVR74736 (AUTH halo1); Thu, 7 Jul 2005 23:08:31 +0300 (IDT) Original-To: "Drew Adams" In-reply-to: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40588 gmane.emacs.pretest.bugs:8359 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40588 > From: "Drew Adams" > Date: Thu, 7 Jul 2005 09:43:59 -0700 > Cc: Emacs-Pretest-Bug > > I've been doing the same thing Juanma does (code above). But I wonder if > there isn't a bug in `ls-lisp.el'. Notice the commented-out line in > `ls-lisp-emulation' (below). Commenting it out does not make sense in light > of the code of `ls-ignore-case', `ls-lisp-dirs-first', and > `ls-lisp-verbosity', together with the fact that `ls-lisp.el' is preloaded. It does make sense: we don't want those options to have non-nil values, we want ls-lisp to produce the same results as with a real `ls' program. One problem with making the Windows-like behavior the default is that if one has a ported ls.exe and uses it to produce Dired buffers, the order will be different. Such inconsistency is bad. > The latter options should not bother to test `ls-lisp-emulation'. They > appear dependent on `ls-lisp-emulation', but if that is set by a user, it > will be set _after_ all of these preloaded defcustoms, so the user will in > any case be obliged to set each of these options, not just > `ls-lisp-emulation'. Not true: the user could load ls-lisp from .emacs and then customize the options, including ls-lisp-emulation. > I would like to see the commented line uncommented again, so that these > variables all do what they were originally desiged to do for Windows. If that line is uncommented, preloading will cause ls-lisp to produce Windows-like order, something that we decided not to do. > People, such as Edward, who want "consistent" behavior across platforms > (e.g. showing columns that make no sense outside of Unix), could always > change the option values, but the default values should make sense for each > platform. That's not the Emacs philosophy, AFAIK. Consistent behavior across platforms is deemed more important than consistency with other platform-specific applications. > On Windows, it makes sense to show directories first, ignore case > differences, and get rid of columns that make no sense. The order used by Windows tools is IMHO stupid and user-unfriendly: it assumes, for some reason, that people do not look up directories and files together.