From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: dired-details: show/hide file details in Dired Date: Wed, 4 Jul 2007 13:00:17 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183579245 31753 80.91.229.12 (4 Jul 2007 20:00:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2007 20:00:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 04 22:00:43 2007 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I6B1i-0006FA-Ui for ged-emacs-devel@m.gmane.org; Wed, 04 Jul 2007 22:00:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6B1i-0001s9-FR for ged-emacs-devel@m.gmane.org; Wed, 04 Jul 2007 16:00:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6B1e-0001s1-Bo for emacs-devel@gnu.org; Wed, 04 Jul 2007 16:00:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6B1c-0001rQ-PW for emacs-devel@gnu.org; Wed, 04 Jul 2007 16:00:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6B1c-0001rJ-Gc for emacs-devel@gnu.org; Wed, 04 Jul 2007 16:00:32 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I6B1b-0005Sf-Hc for emacs-devel@gnu.org; Wed, 04 Jul 2007 16:00:31 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l64K0SxZ019404; Wed, 4 Jul 2007 14:00:28 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l64K0RAl029630; Wed, 4 Jul 2007 14:00:27 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-80-71.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3012836461183579226; Wed, 04 Jul 2007 13:00:26 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 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:74303 Archived-At: > Thank you for sending the code. I got the other code, too, > fit-frame.el > autofit-frame.el > dired-details.el > > which looks to be needed to test the library. No, not really. As I said, the frame-fitting part is optional. The `require' is soft (no error if not found), and if you do not have the *-frame.el libraries, the Dired hide/show code still works just fine. I use non-nil pop-up-frames, so frame fitting is important to me, but it is not necessary for the other features provided by dired-details+.el. You can no doubt imagine that without frame fitting not much would be gained by removing Dired details: the frame would occupy just as much screen real estate as for the detailed listing. dired-details.el is required because dired-details+.el is just a tweak for it. > You forgot to create the variable dired-details-state; I put > (setq dired-details-state nil) > at the beginning of dired-details+.el and have not had any trouble > since. No, I didn't forget to create that variable. dired-details+.el is just a tweak on top of dired-details, which defines `dired-details-state' with `defvar'. If I had written dired-details, then I would have just modified it directly, instead of creating a separate tweak library. > It seems to work on a short test; however, I do like the long listing > that dired provides, I especially find it important to see permission, > owners, size, and date, as well name. And I hardly ever use frames. > > So for me, all this would be useless. But others operate differently. I understand. Use of this feature would be optional. As with all options, not every Emacs user will find it useful. As always, it depends on your own usage patterns. It can even depend on your operating system. I am often on M$ Windows these days, so I often don't need to bother with the file permissions, for instance. I don't claim that everyone will find this useful. I do, and I'm glad that Rob wrote it. I keep my Dired buffers with the file-name-only display 90% of the time. YMMV. And, besides being optional, you have a toggle to change the display. I too "like the long listing that dired provides". I just like to be able to also have a short listing. Thanks for giving it a try and reporting what you found.