From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: dired listg & dired-sort-menu.el Date: Fri, 28 Jun 2013 20:02:03 -0700 (PDT) Message-ID: <25543c5b-b298-4f81-b798-d0259ada1127@default> References: <8761xc50qi.fsf@newsguy.com> <403b022b-f534-491a-a40c-cec5bfbdcf8e@default> <87bo6zqmwf.fsf@newsguy.com> <55519210-5f13-43b5-b6ff-396fd1f4769c@default> <87haghk7l1.fsf@newsguy.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372474939 13137 80.91.229.3 (29 Jun 2013 03:02:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Jun 2013 03:02:19 +0000 (UTC) To: Harry Putnam , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 29 05:02:18 2013 Return-path: Envelope-to: geh-help-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 1UslQX-0007bC-BF for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Jun 2013 05:02:17 +0200 Original-Received: from localhost ([::1]:43177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UslQX-00010v-1V for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jun 2013 23:02:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UslQO-00010f-A8 for help-gnu-emacs@gnu.org; Fri, 28 Jun 2013 23:02:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UslQN-0003hA-Ap for help-gnu-emacs@gnu.org; Fri, 28 Jun 2013 23:02:08 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:21017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UslQN-0003gq-3m for help-gnu-emacs@gnu.org; Fri, 28 Jun 2013 23:02:07 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5T2tjts020952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 29 Jun 2013 02:55:46 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5T323AX018863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Jun 2013 03:02:04 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5T3233a018853; Sat, 29 Jun 2013 03:02:03 GMT In-Reply-To: <87haghk7l1.fsf@newsguy.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91840 Archived-At: > >> Whereas, the menu from your wikipages (The bottom image), have two > >> different items.... `Ignore Case' and `Dirs First' > > > > See above - you need (require 'dired-sort-menu+) >=20 > I must be having some other problem here. > With this in emacs: > (require 'dired-x) > (require 'dired-sort-menu) > (require 'dired-sort-menu+) You don't need to require `dired-sort-menu'; that is done by `dired-sort-menu+'. (But it doesn't hurt anything to do so.) > I should see 'Dirs first' as part of the menu right? > But what I see when pressing S-mouse-2 is this (No 'Dirs First' is listed= ): Right. It depends on your setup. In what I see, I do not see the `Time Accessed' menu item (which you see), for instance. If you check the Lisp code you will see that `Dirs First' and `Ignore Case' are supported only if (ls-lisp-var-p 'ls-lisp-dirs-first) and (ls-lisp-var-p 'ls-lisp-ignore-case) return non-nil. `C-h f ls-lisp-var-p' says this: Return non-nil if ls-lisp variable VAR should be used. And in this case the VAR is `ls-lisp-dirs-first'. The Commentary in dired-sort-menu.el says this: ;; The menu also supports two Emacs 21 `ls-lisp' switches: ;; `ls-lisp-ignore-case' ignores case in alphanumeric sorts and ;; `ls-lisp-dirs-first' lists all directories first. (These latter ;; two switches improve compatibility with Microsoft Windows ;; Explorer.) Bottom line: those two `lisp-var-p' sexps that guard those menu items return nil for you but non-nil for me. Those two variables (user options, actually) are provided by library `ls-lisp.el'. If your Emacs does not use library ls-lisp.el then you will not have those menu items. You can try loading ls-lisp.el, but that will likely change some other things that you might not like (dunno). ls-lisp.el is an emulation library: it emulates Unix command `ls' using Lisp. HTH.