From: Drew Adams <drew.adams@oracle.com>
To: Harry Putnam <reader@newsguy.com>, help-gnu-emacs@gnu.org
Subject: RE: dired listg & dired-sort-menu.el
Date: Fri, 28 Jun 2013 20:02:03 -0700 (PDT) [thread overview]
Message-ID: <25543c5b-b298-4f81-b798-d0259ada1127@default> (raw)
In-Reply-To: <87haghk7l1.fsf@newsguy.com>
> >> 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+)
>
> 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.
next prev parent reply other threads:[~2013-06-29 3:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-17 13:24 dired listg & dired-sort-menu.el Harry Putnam
2013-06-17 14:25 ` Drew Adams
2013-06-21 19:33 ` Harry Putnam
2013-06-21 21:08 ` Drew Adams
2013-06-29 1:51 ` Harry Putnam
2013-06-29 3:02 ` Drew Adams [this message]
2013-06-29 16:16 ` Harry Putnam
2013-06-29 2:09 ` Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25543c5b-b298-4f81-b798-d0259ada1127@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=reader@newsguy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).