From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: dired listg & dired-sort-menu.el Date: Fri, 21 Jun 2013 15:33:36 -0400 Organization: Still searching... Message-ID: <87bo6zqmwf.fsf@newsguy.com> References: <8761xc50qi.fsf@newsguy.com> <403b022b-f534-491a-a40c-cec5bfbdcf8e@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371843327 20585 80.91.229.3 (21 Jun 2013 19:35:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 19:35:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 21 21:35:28 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 1Uq77H-00009B-HP for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 21:35:27 +0200 Original-Received: from localhost ([::1]:48069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq77H-0006Pz-5d for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2013 15:35:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq776-0006NF-EH for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 15:35:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq775-00054s-4r for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 15:35:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:32896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq774-00054l-Uz for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 15:35:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uq773-0008KG-LK for help-gnu-emacs@gnu.org; Fri, 21 Jun 2013 21:35:13 +0200 Original-Received: from z65-50-57-227.ips.direcpath.com ([65.50.57.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jun 2013 21:35:13 +0200 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jun 2013 21:35:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 105 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-57-227.ips.direcpath.com User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:vrhdRGWjIkSby6hidLza0h1QYvo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:91654 Archived-At: Drew Adams writes: >> Running >> Emacs 24.0.92.1 on Debian (testing) >> >> Just tinkering with the sorting in dired and ran across Francis J >> Wright's 'dired-sort-menu.el' (and menu+)... The following site shows >> the menu that is produced: >> o >> http://www.emacswiki.org/emacs/DiredSortMenu >> >> But when I load the library and press 'M-x dired-sort-dialogue' I get >> a less extensive menu and wondered if this is a result of the library >> being quite old (or possibly changes in the gnu 'ls' command..) [...] > You do not say what the differences are between what you see and what is > shown on wiki page DiredSortMenu. I left out quite a bit I should have included... trying to correct that below. Thank you for taking time to coach me along on this. > That page shows a popup menu initiated via `S-mouse-2' (in Dired). > You used `M-x dired-sort-dialogue' instead, which does not provide submenu > Configuration and provides a `Reverse' checkbox instead of a `Reversed Sort > By' submenu. If this is the difference you are seeing then it is expected. I probably should start from the top as this may not even be the way to do what I'm after. But first: I did try `S-mouse-2'. But somehow a veil of shear idiocy fell over me and I was reading it +S+mouse+2, so naturally emacs started the `symlink' dialog... I then assumed things had changes since the dired-sort-menu was written. Once I managed to use S-mouse-2 correctly I noticed there are a couple things missing still. What I'm really after is a way to have 2 things extra going on in the regular dired buffer. 1) hide dot files 2) sort directories first. The menu on your pages on the wiki http://www.emacswiki.org/emacs/DrewsEmacsDiredSortMenu show a menu with an item "Dirs first (W)" so that is what got me looking at that program. I had already googled up code to hide dot files and a setq to list dirs first (I've lost track of the exact sources online, the code is included inline at the end), but with them both in ~/.emacs the hiding dot files part gets canceled out... so I was thinking maybe getting your program in there might solve that. Getting back to subject. I've posted three images, now that I broke out of the idiocy veil. 1) menu produced by S-Mouse-2 2) Menu produced by Menu / Immediate / Sort by 3) Menu posted on webpages. You'll see that even though the first two pop up with a little different look, they seem to contain the same items. Whereas, the menu from your wikipages (The bottom image), have two different items.... `Ignore Case' and `Dirs First' www.jtan.com/~reader/vu1/disp.cgi (Should produce 3 stacked images in the order shown above) But to repeat my reason for query... In my default dired view I want to have dot files hidden and Dirs sorted first... but be able to toggle dot files. ------- --------- ---=--- --------- -------- ------- --------- ---=--- --------- -------- Hide dot files ,---- | (require 'dired-x) | | (setq-default dired-omit-files-p t) ; this is buffer-local variable | | (setq dired-omit-files | (concat dired-omit-files "\\|^\\..+$")) `---- Sort directories first ,---- | (setq dired-listing-switches "-lXGh --group-directories-first") `----