From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29766: 25.3; REGRESSION, Dired on MS Windows, switches -alF Date: Tue, 19 Dec 2017 13:11:30 -0800 (PST) Message-ID: References: <<<<<52375503-be26-49ea-9d31-9926a125c0db@default>>>>> <<<<<83lghzq0r4.fsf@gnu.org>>>>> <<<<07c40ae2-2160-43e3-b246-b98db5fc4b04@default>>>> <<<<83ind3pfez.fsf@gnu.org>>>> <<<1ca5954e-224c-4bce-b70b-8d3fece8d7fd@default>>> <<<83efnqputp.fsf@gnu.org>>> <> <<83y3lyo5to.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1513717821 12911 195.159.176.226 (19 Dec 2017 21:10:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Dec 2017 21:10:21 +0000 (UTC) Cc: 29766@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 19 22:10:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRP9S-0002Ua-Ob for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Dec 2017 22:10:14 +0100 Original-Received: from localhost ([::1]:38130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRPBM-0004YV-Fp for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Dec 2017 16:12:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRPBG-0004Xq-6t for bug-gnu-emacs@gnu.org; Tue, 19 Dec 2017 16:12:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRPBC-0004Hl-2z for bug-gnu-emacs@gnu.org; Tue, 19 Dec 2017 16:12:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRPBB-0004HS-Ty for bug-gnu-emacs@gnu.org; Tue, 19 Dec 2017 16:12:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRPBB-0007KK-MH for bug-gnu-emacs@gnu.org; Tue, 19 Dec 2017 16:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Dec 2017 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 29766-submit@debbugs.gnu.org id=B29766.151371790728144 (code B ref 29766); Tue, 19 Dec 2017 21:12:01 +0000 Original-Received: (at 29766) by debbugs.gnu.org; 19 Dec 2017 21:11:47 +0000 Original-Received: from localhost ([127.0.0.1]:42735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRPAw-0007Jr-SY for submit@debbugs.gnu.org; Tue, 19 Dec 2017 16:11:47 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:33388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRPAv-0007Jd-7E for 29766@debbugs.gnu.org; Tue, 19 Dec 2017 16:11:45 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBJL6wYF052566; Tue, 19 Dec 2017 21:11:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=tj4qE0EQEtWjnUnFI+l6bE0Itf96DK3rCzhYNHBxJnc=; b=pHvmCGprkoweN4JZutwM1MqxCpblRgfxw+g/uJJF7I1y8+C59dF5Oc4Vl/zXmSM8tmzh sywr6Esw5YU+9dgAQJwdfVDmZa9kjTFdmBPIvPqj8sIwrMyx+pmtNCuJ1eJkK/AN0ZWW KxNJAsEXLaHLTCC+BlR0+5jZbqKpxn28Ydz9X6S5GmpnPCCnvoA9bXV7qSfWkzVqjbgB BMbtZ9oe3defs/uOl2xaEWzv2trx/k6HlpFrNKVluiaw7ootKWGOXzOEYKsgYTkBD6+B 5Qut5KhC2oqIb8EaEFh8j1bHzpBUXm2tTOk8qQmRzfU87HaAw+hLFaBoxoTZGkh/eHee Ug== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2eya35rft7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Dec 2017 21:11:35 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vBJLBWcl025521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Dec 2017 21:11:34 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBJLBVMK004963; Tue, 19 Dec 2017 21:11:32 GMT In-Reply-To: <<83y3lyo5to.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4627.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8750 signatures=668650 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712190299 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141266 Archived-At: > > > We already have plenty of such customization options > > > in ls-lisp.el, had them for a long time. > > > > What option(s) in ls-lisp.el correspond to such an alist? >=20 > What alist and for which purpose? You never explained that. As I said: But since different platforms have (apparently) such different outside-Emacs behaviors, perhaps an alist of values, keyed by platform in some way, would be better. Then the defaults for common platforms could be preconfigured according to what users of those platforms might expect. And a user of multiple platforms could opt for either the same behavior everywhere or different behaviors here and there. Just something to think about, I guess. If you see no way to have alist keys that can be used to specify per-platform behavior, then that suggestion is perhaps not feasible. But otherwise, it could be useful. An alist entry of, say, (windows-nt . compare-strings) would have the effect, when (eq system-type 'windows-nt), of using `compare-strings' to sort files. An entry of (windows-nt . string-collate-lessp) would instead use ` string-collate-lessp' on MS Windows. The same user could have preferred settings for multiple platforms. The default alist value could be whatever you like. > > I don't see any. And if there is already such an option, > > let alone plenty of them, then why did we add > > `ls-lisp-use-string-collate'? >=20 > I don't see how an alist could replace > ls-lisp-use-string-collate. See above. Change the value of the option from Boolean to alist. Get the sort predicate from the alist, checking the key against the current platform (or whatever - perhaps `system-type' is not the only reasonable test).